#if !(defined(CPU_FLAG_INTEL_MOVBE) && defined(CPU_FLAG_INTEL_BMI2))
#include <gmlib/number/internal/mpz_common.h>
#include <stdexcept>
#include <cstring>

using namespace number::internal::common;

void test_mpz_common_add_carry()
{
    uint32_t    augend[8], addend[8], sum[8];
    int          carry;
    std::uint8_t sum_data[32];

    static std::uint8_t augend0[32] = {0x6d,0xe1,0x2f,0x0a,0xad,0xfd,0x7a,0x7c,0xc1,0x93,0xb7,0xe1,0x22,0xac,0xbd,0xee,0x28,0x4d,0xb3,0x80,0x3f,0xd9,0x7c,0x3a,0x34,0xac,0xf1,0xa2,0x42,0x42,0x80,0x5f};
    static std::uint8_t addend0[32] = {0x3c,0x7c,0x5b,0x9e,0x69,0x37,0x7c,0xff,0xd9,0xd4,0x9b,0xeb,0x3f,0xb7,0xc0,0x7a,0x34,0xed,0xca,0x2f,0xe3,0x8e,0xf4,0x07,0x26,0xd3,0x70,0xee,0x19,0x0d,0x6a,0x11};
    static std::uint8_t sum0[32]    = {0xaa,0x5d,0x8a,0xa9,0x17,0x34,0xf7,0x7c,0x9b,0x68,0x53,0xcc,0x62,0x64,0x7e,0x68,0x5d,0x3b,0x7d,0xb0,0x23,0x68,0x70,0x41,0x5b,0x80,0x62,0x90,0x5b,0x4f,0xea,0x70};
    static int          carry0      = 0;
    mpz_from_bytes(augend, augend0, 8);
    mpz_from_bytes(addend, addend0, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum0, sum_data, 32) != 0 || carry0 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend1[32] = {0xd4,0x9f,0x91,0x4a,0xee,0xa8,0xf8,0x00,0xdd,0x70,0xa2,0x88,0xa7,0x1d,0xc7,0xe0,0xa0,0x8d,0x3e,0x65,0x56,0x57,0x01,0x24,0x62,0x83,0x55,0x91,0xd9,0x37,0xa0,0xc6};
    static std::uint8_t addend1[32] = {0xec,0xec,0x81,0xd1,0x43,0x30,0xfc,0x6e,0x29,0xbf,0xba,0xb5,0x43,0xd8,0x00,0xd0,0x72,0xb2,0x14,0xc9,0xab,0x5a,0xf2,0xfa,0x11,0x5c,0xf6,0xe8,0xad,0xe3,0x59,0x1e};
    static std::uint8_t sum1[32]    = {0xc1,0x8c,0x13,0x1c,0x31,0xd9,0xf4,0x6f,0x07,0x30,0x5d,0x3d,0xea,0xf5,0xc8,0xb1,0x13,0x3f,0x53,0x2f,0x01,0xb1,0xf4,0x1e,0x73,0xe0,0x4c,0x7a,0x87,0x1a,0xf9,0xe4};
    static int          carry1      = 1;
    mpz_from_bytes(augend, augend1, 8);
    mpz_from_bytes(addend, addend1, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum1, sum_data, 32) != 0 || carry1 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend2[32] = {0xfb,0x0e,0x74,0xf2,0x1e,0xb5,0xe2,0x82,0xe6,0xf5,0x89,0xe3,0xe1,0x04,0xb8,0x74,0xbb,0x5a,0xe0,0x18,0xfc,0x70,0x27,0x97,0xc0,0xd7,0x77,0x30,0x90,0x89,0xa0,0x8a};
    static std::uint8_t addend2[32] = {0x82,0x2b,0x1e,0x76,0x1b,0x32,0x05,0x12,0x91,0x9f,0x46,0xd7,0x70,0xfb,0x06,0x06,0xf3,0x8c,0x06,0xbd,0x74,0x98,0xac,0x6b,0x2b,0x24,0x8d,0x0d,0x2b,0x4a,0x16,0x79};
    static std::uint8_t sum2[32]    = {0x7d,0x39,0x93,0x68,0x39,0xe7,0xe7,0x95,0x78,0x94,0xd0,0xbb,0x51,0xff,0xbe,0x7b,0xae,0xe6,0xe6,0xd6,0x71,0x08,0xd4,0x02,0xeb,0xfc,0x04,0x3d,0xbb,0xd3,0xb7,0x03};
    static int          carry2      = 1;
    mpz_from_bytes(augend, augend2, 8);
    mpz_from_bytes(addend, addend2, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum2, sum_data, 32) != 0 || carry2 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend3[32] = {0x9d,0x39,0xfc,0xbb,0xa2,0x21,0x41,0x57,0xe4,0x6b,0x79,0x3d,0x7d,0xfc,0x40,0x0e,0xe4,0x03,0x24,0x41,0xaf,0xc4,0x16,0x4e,0x92,0x0b,0x00,0x12,0x56,0xf5,0x90,0xd2};
    static std::uint8_t addend3[32] = {0xbd,0xc5,0x1f,0x43,0x30,0x54,0xf2,0xd7,0x5b,0xc3,0x3f,0xad,0xe4,0x64,0x17,0xf3,0xc1,0x5c,0x33,0xb8,0x0c,0x4f,0xf0,0xb4,0xfd,0x3f,0xa4,0x03,0x13,0x74,0xa1,0x90};
    static std::uint8_t sum3[32]    = {0x5a,0xff,0x1b,0xfe,0xd2,0x76,0x34,0x2f,0x40,0x2e,0xb8,0xeb,0x62,0x60,0x58,0x02,0xa5,0x5f,0x57,0xf9,0xbc,0x14,0x07,0x03,0x8f,0x4a,0xa4,0x15,0x6a,0x6a,0x32,0x62};
    static int          carry3      = 1;
    mpz_from_bytes(augend, augend3, 8);
    mpz_from_bytes(addend, addend3, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum3, sum_data, 32) != 0 || carry3 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend4[32] = {0xa2,0x57,0x92,0x2e,0x75,0x96,0x76,0xdf,0x24,0x77,0x9c,0xef,0x59,0x91,0xe4,0xb0,0x12,0xd0,0x00,0xc7,0x16,0x9c,0x43,0x36,0xce,0xe6,0x0f,0x2c,0x2f,0x81,0x3c,0x75};
    static std::uint8_t addend4[32] = {0xf1,0xbd,0x5c,0xf3,0x2c,0x32,0x14,0xbf,0xf2,0x26,0xea,0x20,0xbf,0xdc,0x69,0xfd,0xa4,0xf9,0x47,0x49,0x1f,0xeb,0x56,0x97,0x91,0x51,0xc2,0x60,0x3a,0xbc,0xf1,0x78};
    static std::uint8_t sum4[32]    = {0x94,0x14,0xef,0x21,0xa1,0xc8,0x8b,0x9f,0x16,0x9e,0x87,0x10,0x19,0x6e,0x4e,0xad,0xb7,0xc9,0x48,0x10,0x36,0x87,0x99,0xce,0x60,0x37,0xd1,0x8c,0x6a,0x3e,0x2d,0xed};
    static int          carry4      = 1;
    mpz_from_bytes(augend, augend4, 8);
    mpz_from_bytes(addend, addend4, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum4, sum_data, 32) != 0 || carry4 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend5[32] = {0x17,0xdb,0xe6,0x5f,0x1d,0xb8,0x6a,0x4e,0xc6,0xa1,0x68,0x01,0x5c,0x0b,0x7a,0x57,0x42,0x80,0xfd,0x07,0x31,0x80,0x0f,0x22,0x5c,0x82,0xf1,0xfc,0xc8,0x86,0x41,0x60};
    static std::uint8_t addend5[32] = {0xf6,0xab,0x45,0xdf,0xdc,0xd1,0xce,0xbc,0x9d,0xb7,0x20,0x2a,0x32,0x5b,0xd4,0x88,0xad,0x56,0xfe,0xbe,0xf2,0xa8,0x74,0x65,0x89,0xe9,0x02,0x3e,0x6e,0x05,0x72,0x9a};
    static std::uint8_t sum5[32]    = {0x0e,0x87,0x2c,0x3e,0xfa,0x8a,0x39,0x0b,0x64,0x58,0x88,0x2b,0x8e,0x67,0x4e,0xdf,0xef,0xd7,0xfb,0xc6,0x24,0x28,0x83,0x87,0xe6,0x6b,0xf4,0x3b,0x36,0x8b,0xb3,0xfa};
    static int          carry5      = 1;
    mpz_from_bytes(augend, augend5, 8);
    mpz_from_bytes(addend, addend5, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum5, sum_data, 32) != 0 || carry5 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend6[32] = {0x7a,0xc9,0x64,0xa4,0xdb,0xe1,0x53,0x9a,0x23,0x99,0x53,0xf6,0x9b,0xc2,0x23,0xe1,0x48,0x6f,0x38,0x88,0x1b,0x1d,0x9f,0xbd,0x04,0x28,0xcb,0x4a,0x39,0x83,0x28,0x9e};
    static std::uint8_t addend6[32] = {0x79,0xbb,0x86,0xa6,0x0f,0xd9,0x59,0x48,0x91,0x0f,0x71,0x1d,0xab,0xaf,0x59,0xfa,0x89,0x20,0x0e,0x76,0x9d,0x5b,0xfd,0x1e,0x7a,0x7b,0x01,0x6a,0x1a,0x67,0x0f,0xdb};
    static std::uint8_t sum6[32]    = {0xf4,0x84,0xeb,0x4a,0xeb,0xba,0xac,0xe2,0xb4,0xa8,0xc5,0x14,0x47,0x71,0x7d,0xdb,0xd1,0x8f,0x46,0xfe,0xb8,0x79,0x9c,0xdb,0x7e,0xa3,0xcc,0xb4,0x53,0xea,0x38,0x79};
    static int          carry6      = 0;
    mpz_from_bytes(augend, augend6, 8);
    mpz_from_bytes(addend, addend6, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum6, sum_data, 32) != 0 || carry6 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend7[32] = {0x7e,0x4e,0x6d,0xb9,0x9d,0xbf,0xe1,0xe4,0xd8,0x27,0x3b,0xce,0x53,0xce,0x5c,0x62,0xd3,0x91,0xfd,0xba,0x35,0x2c,0xbc,0xae,0xb0,0xc1,0xa0,0x08,0x22,0x15,0xcf,0x32};
    static std::uint8_t addend7[32] = {0x10,0xb0,0x85,0x35,0x42,0x76,0xbb,0x5d,0x05,0x1c,0x74,0x65,0x72,0x89,0xe7,0x72,0x3e,0xf2,0x52,0x14,0xcd,0x19,0x8b,0x7f,0x36,0x36,0xe0,0xe9,0xeb,0x14,0x4d,0x91};
    static std::uint8_t sum7[32]    = {0x8e,0xfe,0xf2,0xee,0xe0,0x36,0x9d,0x41,0xdd,0x43,0xb0,0x33,0xc6,0x58,0x43,0xd5,0x12,0x84,0x4f,0xcf,0x02,0x46,0x48,0x2d,0xe6,0xf8,0x80,0xf2,0x0d,0x2a,0x1c,0xc3};
    static int          carry7      = 0;
    mpz_from_bytes(augend, augend7, 8);
    mpz_from_bytes(addend, addend7, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum7, sum_data, 32) != 0 || carry7 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend8[32] = {0x9c,0x22,0x9b,0x18,0xab,0x2f,0x9f,0x24,0xf4,0x7e,0xfd,0xfd,0xae,0xdc,0x85,0x5d,0x20,0x86,0xa2,0x2f,0x37,0x69,0x20,0x3b,0xa0,0xb9,0xa3,0xea,0x72,0x07,0xe5,0xb8};
    static std::uint8_t addend8[32] = {0x56,0x43,0xc0,0x6a,0x32,0x55,0xbf,0x5d,0xb3,0xf6,0x7e,0x41,0xbb,0xe4,0xca,0x91,0x08,0xc2,0x4a,0x24,0xd0,0x4e,0xa5,0xa6,0xa9,0x97,0xfc,0x31,0x33,0x73,0xf6,0xa2};
    static std::uint8_t sum8[32]    = {0xf2,0x66,0x5b,0x82,0xdd,0x85,0x5e,0x82,0xa8,0x75,0x7c,0x3f,0x6a,0xc1,0x4f,0xee,0x29,0x48,0xec,0x54,0x07,0xb7,0xc5,0xe2,0x4a,0x51,0xa0,0x1b,0xa5,0x7b,0xdc,0x5a};
    static int          carry8      = 0;
    mpz_from_bytes(augend, augend8, 8);
    mpz_from_bytes(addend, addend8, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum8, sum_data, 32) != 0 || carry8 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend9[32] = {0xce,0x33,0x78,0xc1,0x76,0x4d,0x39,0xa1,0xfd,0xaf,0x38,0xae,0x10,0xc6,0xde,0xca,0x8d,0x3e,0xc9,0x63,0xc1,0x89,0x08,0x62,0x5e,0x78,0xa8,0x2e,0x24,0x74,0xdb,0xe0};
    static std::uint8_t addend9[32] = {0x9b,0x2d,0xf8,0x4a,0xbc,0x10,0x25,0xb1,0xbd,0x88,0xe3,0xdf,0xdd,0x54,0x16,0x94,0x0f,0xb6,0x9a,0xf3,0x73,0x5a,0xaf,0x9c,0xe5,0x17,0x45,0xa4,0x4a,0x8c,0xb7,0x87};
    static std::uint8_t sum9[32]    = {0x69,0x61,0x71,0x0c,0x32,0x5d,0x5f,0x53,0xbb,0x38,0x1c,0x8d,0xee,0x1a,0xf5,0x5e,0x9c,0xf5,0x64,0x57,0x34,0xe3,0xb7,0xff,0x43,0x8f,0xed,0xd2,0x6f,0x01,0x93,0x67};
    static int          carry9      = 1;
    mpz_from_bytes(augend, augend9, 8);
    mpz_from_bytes(addend, addend9, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum9, sum_data, 32) != 0 || carry9 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend10[32] = {0x05,0xf5,0x6c,0x24,0xe7,0x7e,0xd2,0x2e,0x8f,0x73,0xee,0x18,0xaa,0xb1,0x97,0x1b,0xdc,0xd4,0x4f,0x07,0xe1,0xfc,0xa9,0xfa,0xeb,0x36,0x25,0xdb,0xd2,0x52,0x1c,0x5f};
    static std::uint8_t addend10[32] = {0x51,0x1e,0x9b,0xeb,0xeb,0x46,0x7b,0x00,0xa4,0x4e,0xf5,0xc0,0xf2,0x9b,0x3e,0x07,0xd9,0x9b,0xa4,0x9e,0x11,0x5f,0xde,0x9f,0x41,0x81,0x58,0x09,0x00,0xa9,0xd5,0x94};
    static std::uint8_t sum10[32]    = {0x57,0x14,0x08,0x10,0xd2,0xc5,0x4d,0x2f,0x33,0xc2,0xe3,0xd9,0x9d,0x4c,0xd5,0x23,0xb6,0x6f,0xf3,0xa5,0xf3,0x5c,0x88,0x9a,0x2c,0xb7,0x7d,0xe4,0xd2,0xfb,0xf1,0xf3};
    static int          carry10      = 0;
    mpz_from_bytes(augend, augend10, 8);
    mpz_from_bytes(addend, addend10, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum10, sum_data, 32) != 0 || carry10 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend11[32] = {0x61,0xa5,0x0c,0x13,0xa1,0x31,0x60,0x7b,0x6e,0xfd,0x49,0x7d,0x49,0x5f,0xcf,0x81,0x06,0x29,0x6c,0x9a,0xf6,0x26,0xbe,0x0b,0x43,0xd4,0xb3,0x18,0x2f,0x29,0x18,0x8e};
    static std::uint8_t addend11[32] = {0x61,0x90,0xfd,0x0f,0x71,0x77,0x60,0xd2,0x75,0x09,0x0d,0x8e,0xe8,0x9a,0x7a,0xa7,0x67,0xf7,0xe3,0x45,0xb4,0x3d,0x00,0xb9,0x57,0xfb,0x98,0xfc,0x2d,0x47,0x3a,0xde};
    static std::uint8_t sum11[32]    = {0xc3,0x36,0x09,0x23,0x12,0xa8,0xc1,0x4d,0xe4,0x06,0x57,0x0c,0x31,0xfa,0x4a,0x28,0x6e,0x21,0x4f,0xe0,0xaa,0x63,0xbe,0xc4,0x9b,0xd0,0x4c,0x14,0x5c,0x70,0x53,0x6c};
    static int          carry11      = 0;
    mpz_from_bytes(augend, augend11, 8);
    mpz_from_bytes(addend, addend11, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum11, sum_data, 32) != 0 || carry11 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend12[32] = {0xc2,0xb2,0x64,0x44,0x6f,0xdb,0x8e,0x40,0x51,0x2c,0xd1,0xf9,0x0d,0xa8,0x21,0x5f,0x9d,0x2a,0xb8,0x78,0x6a,0xfd,0x8c,0x32,0xd0,0x92,0x48,0xd1,0xc6,0x27,0x24,0x89};
    static std::uint8_t addend12[32] = {0xba,0xad,0x6c,0xdb,0xe0,0xde,0xc0,0x56,0x32,0x57,0x65,0xe2,0x18,0xa8,0x9b,0x66,0x5e,0x35,0x0d,0x3b,0xaf,0xc8,0xc0,0xb6,0x70,0x99,0x41,0x84,0xff,0x5a,0xc9,0xc2};
    static std::uint8_t sum12[32]    = {0x7d,0x5f,0xd1,0x20,0x50,0xba,0x4e,0x96,0x83,0x84,0x37,0xdb,0x26,0x50,0xbc,0xc5,0xfb,0x5f,0xc5,0xb4,0x1a,0xc6,0x4c,0xe9,0x41,0x2b,0x8a,0x56,0xc5,0x81,0xee,0x4b};
    static int          carry12      = 1;
    mpz_from_bytes(augend, augend12, 8);
    mpz_from_bytes(addend, addend12, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum12, sum_data, 32) != 0 || carry12 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend13[32] = {0x72,0xea,0x45,0xd1,0xce,0x97,0x88,0xd6,0xb1,0xc3,0x2b,0x4a,0xf9,0x09,0x6b,0xbe,0x1f,0xd7,0xbf,0x38,0x04,0xe1,0xef,0x20,0x0d,0x57,0x31,0x80,0xa8,0x64,0x7a,0x48};
    static std::uint8_t addend13[32] = {0x1a,0x8c,0x87,0x31,0x72,0xc0,0x9c,0x9f,0xc3,0x3e,0x7b,0xd0,0xdd,0x02,0x2a,0x92,0xd1,0x03,0x35,0x62,0xd9,0x5b,0xfc,0xac,0x2c,0xca,0x98,0x7f,0x6a,0xd2,0x41,0x28};
    static std::uint8_t sum13[32]    = {0x8d,0x76,0xcd,0x03,0x41,0x58,0x25,0x76,0x75,0x01,0xa7,0x1b,0xd6,0x0b,0x96,0x50,0xf0,0xda,0xf4,0x9a,0xde,0x3d,0xeb,0xcc,0x3a,0x21,0xca,0x00,0x13,0x36,0xbb,0x70};
    static int          carry13      = 0;
    mpz_from_bytes(augend, augend13, 8);
    mpz_from_bytes(addend, addend13, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum13, sum_data, 32) != 0 || carry13 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend14[32] = {0x90,0x76,0x91,0xef,0x3d,0xc7,0x5d,0x3f,0x06,0x04,0xf4,0x4e,0x47,0x71,0x85,0x95,0x0c,0x19,0x74,0x25,0x40,0x45,0x8b,0x27,0x47,0x88,0xa3,0x46,0xe6,0x66,0xab,0x1d};
    static std::uint8_t addend14[32] = {0xf7,0xf8,0xf2,0x7f,0xba,0xdc,0x6c,0xdd,0x84,0x49,0x47,0x24,0x57,0x0f,0x0e,0x8f,0x98,0x73,0x06,0xb7,0x94,0x58,0xaa,0x7f,0xfe,0x51,0x87,0xc1,0xaf,0xa3,0x7d,0x47};
    static std::uint8_t sum14[32]    = {0x88,0x6f,0x84,0x6e,0xf8,0xa3,0xca,0x1c,0x8a,0x4e,0x3b,0x72,0x9e,0x80,0x94,0x24,0xa4,0x8c,0x7a,0xdc,0xd4,0x9e,0x35,0xa7,0x45,0xda,0x2b,0x08,0x96,0x0a,0x28,0x64};
    static int          carry14      = 1;
    mpz_from_bytes(augend, augend14, 8);
    mpz_from_bytes(addend, addend14, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum14, sum_data, 32) != 0 || carry14 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend15[32] = {0x79,0x2c,0x80,0x75,0x7f,0x44,0xb8,0xfd,0x79,0x00,0x7b,0x79,0xe7,0x68,0x92,0x6e,0x03,0x7b,0x77,0x22,0x62,0xda,0x98,0x35,0xa5,0x32,0x75,0x2f,0x86,0x0e,0x3b,0xae};
    static std::uint8_t addend15[32] = {0x72,0xbc,0xec,0xef,0xbd,0x6c,0xac,0x9a,0x8b,0x04,0xfb,0x9c,0xe6,0x53,0x0c,0x15,0x5f,0xab,0x20,0x3d,0x8a,0x89,0x25,0xd0,0xf5,0xa9,0xb1,0x18,0xb2,0x0d,0x0a,0x4d};
    static std::uint8_t sum15[32]    = {0xeb,0xe9,0x6d,0x65,0x3c,0xb1,0x65,0x98,0x04,0x05,0x77,0x16,0xcd,0xbb,0x9e,0x83,0x63,0x26,0x97,0x5f,0xed,0x63,0xbe,0x06,0x9a,0xdc,0x26,0x48,0x38,0x1b,0x45,0xfb};
    static int          carry15      = 0;
    mpz_from_bytes(augend, augend15, 8);
    mpz_from_bytes(addend, addend15, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum15, sum_data, 32) != 0 || carry15 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend16[32] = {0x87,0xa2,0x0b,0x8b,0xaf,0x0e,0x56,0x9e,0xc0,0x35,0xc1,0x7e,0x43,0xd6,0x29,0xec,0x66,0xde,0xc6,0xe9,0x20,0xce,0x4c,0x92,0x5b,0xf9,0x1d,0xf7,0xbb,0x07,0x35,0xd6};
    static std::uint8_t addend16[32] = {0x5f,0x9d,0x33,0xd3,0x85,0x18,0x04,0xb3,0x79,0x5d,0xad,0xd3,0x97,0x8d,0x2d,0x13,0x44,0x1f,0x71,0x3e,0x11,0x54,0xfa,0xa8,0xf3,0xe7,0x7e,0xe3,0xcf,0xb5,0xb0,0xf0};
    static std::uint8_t sum16[32]    = {0xe7,0x3f,0x3f,0x5f,0x34,0x26,0x5b,0x52,0x39,0x93,0x6f,0x51,0xdb,0x63,0x56,0xff,0xaa,0xfe,0x38,0x27,0x32,0x23,0x47,0x3b,0x4f,0xe0,0x9c,0xdb,0x8a,0xbc,0xe6,0xc6};
    static int          carry16      = 0;
    mpz_from_bytes(augend, augend16, 8);
    mpz_from_bytes(addend, addend16, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum16, sum_data, 32) != 0 || carry16 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend17[32] = {0xb0,0x83,0x26,0x6f,0x99,0x07,0xf1,0x77,0x27,0xde,0xf3,0xca,0xb8,0x5f,0xaf,0x62,0x3a,0x9f,0x47,0x6c,0xa7,0xe6,0x2e,0x23,0x1f,0x40,0xc1,0xbc,0xfb,0x57,0xf4,0x0c};
    static std::uint8_t addend17[32] = {0xf8,0x98,0x0f,0xcb,0x47,0x03,0xaf,0x9a,0x0d,0x2e,0x1b,0x21,0x10,0x50,0xa5,0x19,0x74,0x7b,0x79,0x21,0x45,0xe4,0x55,0xc1,0xa2,0x1b,0xf3,0xd1,0xd1,0xa8,0x15,0xe0};
    static std::uint8_t sum17[32]    = {0xa9,0x1b,0x36,0x3a,0xe0,0x0b,0xa1,0x11,0x35,0x0d,0x0e,0xeb,0xc8,0xb0,0x54,0x7b,0xaf,0x1a,0xc0,0x8d,0xed,0xca,0x83,0xe4,0xc1,0x5c,0xb5,0x8e,0xcd,0x00,0x09,0xec};
    static int          carry17      = 1;
    mpz_from_bytes(augend, augend17, 8);
    mpz_from_bytes(addend, addend17, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum17, sum_data, 32) != 0 || carry17 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend18[32] = {0x58,0xbc,0xed,0x51,0x2e,0xc8,0xee,0xa8,0xe5,0x63,0x04,0xf6,0xdb,0xf8,0x5b,0x39,0xaf,0x49,0xaf,0x99,0xe2,0x26,0x87,0xf4,0x87,0xb3,0x57,0x4d,0x46,0xe7,0x61,0x5b};
    static std::uint8_t addend18[32] = {0xbf,0x10,0xb3,0xfc,0x91,0xf8,0x34,0x7d,0x2d,0x09,0xc4,0xc6,0xfd,0x2f,0xd7,0xc7,0x4b,0x29,0xca,0x6c,0x8b,0x55,0xcf,0xd1,0x05,0x9e,0x44,0x6e,0xdb,0xf9,0x46,0xcf};
    static std::uint8_t sum18[32]    = {0x17,0xcd,0xa1,0x4d,0xc0,0xc1,0x23,0x26,0x12,0x6c,0xc9,0xbd,0xd9,0x28,0x33,0x00,0xfa,0x73,0x7a,0x06,0x6d,0x7c,0x57,0xc5,0x8d,0x51,0x9b,0xbc,0x22,0xe0,0xa8,0x2a};
    static int          carry18      = 1;
    mpz_from_bytes(augend, augend18, 8);
    mpz_from_bytes(addend, addend18, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum18, sum_data, 32) != 0 || carry18 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend19[32] = {0xc5,0x6c,0x76,0x6b,0x03,0x50,0xdc,0x4a,0xe7,0x4a,0x3e,0xe9,0x04,0x38,0x5f,0x65,0xbd,0x49,0xf8,0xea,0xd6,0x58,0xac,0x78,0x20,0x56,0x06,0x35,0x3b,0xc2,0xac,0xf9};
    static std::uint8_t addend19[32] = {0x8b,0x75,0xad,0xac,0xdb,0x33,0xdc,0xc2,0xdf,0xe9,0x5e,0x8f,0x92,0x8c,0x90,0x95,0x03,0x2e,0xb5,0x44,0x99,0x1d,0xa7,0xb3,0x44,0x5d,0x02,0x08,0x98,0x91,0x21,0x3c};
    static std::uint8_t sum19[32]    = {0x50,0xe2,0x24,0x17,0xde,0x84,0xb9,0x0d,0xc7,0x33,0x9d,0x78,0x96,0xc4,0xef,0xfa,0xc0,0x78,0xae,0x2f,0x6f,0x76,0x54,0x2b,0x64,0xb3,0x08,0x3d,0xd4,0x53,0xce,0x35};
    static int          carry19      = 1;
    mpz_from_bytes(augend, augend19, 8);
    mpz_from_bytes(addend, addend19, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum19, sum_data, 32) != 0 || carry19 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend20[32] = {0x03,0x94,0x40,0xdb,0x37,0x97,0x27,0x66,0xca,0xf4,0xc9,0x58,0x65,0x89,0xc8,0xec,0x91,0xf1,0x3f,0xfd,0x23,0x20,0xbc,0x2a,0x4c,0xaf,0x4f,0x52,0xcb,0x34,0x8f,0xf4};
    static std::uint8_t addend20[32] = {0x43,0xca,0xd2,0x42,0x89,0x2f,0xb1,0x05,0x05,0x13,0x14,0xcb,0x52,0x5c,0xfe,0x4b,0xac,0x0e,0xed,0x14,0x58,0xe5,0x95,0x48,0xe7,0x81,0x06,0x8e,0xf9,0x59,0xd7,0x81};
    static std::uint8_t sum20[32]    = {0x47,0x5f,0x13,0x1d,0xc0,0xc6,0xd8,0x6b,0xd0,0x07,0xde,0x23,0xb7,0xe6,0xc7,0x38,0x3e,0x00,0x2d,0x11,0x7c,0x06,0x51,0x73,0x34,0x30,0x55,0xe1,0xc4,0x8e,0x67,0x75};
    static int          carry20      = 0;
    mpz_from_bytes(augend, augend20, 8);
    mpz_from_bytes(addend, addend20, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum20, sum_data, 32) != 0 || carry20 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend21[32] = {0x84,0x50,0x40,0x2e,0xeb,0x83,0x17,0xe2,0xed,0x1e,0xb6,0x73,0x83,0x06,0xae,0x35,0xfa,0x68,0x75,0xc4,0x22,0x6e,0x56,0xd8,0x65,0xa8,0x81,0x71,0x2f,0xfb,0xae,0x64};
    static std::uint8_t addend21[32] = {0x7f,0xf0,0xa2,0x22,0xaf,0x82,0x3e,0xb5,0x8c,0x0f,0x89,0xc6,0x65,0xa7,0x7e,0xf0,0x11,0x94,0x51,0x6a,0x31,0x29,0x98,0x5b,0xcd,0x5f,0xde,0x76,0xbb,0xd6,0x5b,0x54};
    static std::uint8_t sum21[32]    = {0x04,0x40,0xe2,0x51,0x9b,0x05,0x56,0x98,0x79,0x2e,0x40,0x39,0xe8,0xae,0x2d,0x26,0x0b,0xfc,0xc7,0x2e,0x53,0x97,0xef,0x34,0x33,0x08,0x5f,0xe7,0xeb,0xd2,0x09,0xb8};
    static int          carry21      = 1;
    mpz_from_bytes(augend, augend21, 8);
    mpz_from_bytes(addend, addend21, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum21, sum_data, 32) != 0 || carry21 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend22[32] = {0xf2,0xbd,0xd3,0x4a,0x7f,0x68,0x82,0x27,0x81,0xe0,0xfe,0x33,0x6c,0xd5,0xc7,0x43,0xd5,0x77,0xee,0x09,0x3e,0xa0,0xe2,0x70,0xdc,0xf3,0x2a,0xd3,0xc1,0xd4,0x27,0xf9};
    static std::uint8_t addend22[32] = {0x86,0xe4,0x2d,0x2d,0x6b,0xd6,0x8d,0x03,0x05,0x88,0xa5,0x10,0xc8,0x2d,0xf3,0x5f,0x0c,0x8b,0x73,0x61,0xf6,0x9c,0xe9,0xcf,0x85,0x6c,0xd0,0x85,0x20,0xf3,0x59,0xf4};
    static std::uint8_t sum22[32]    = {0x79,0xa2,0x00,0x77,0xeb,0x3f,0x0f,0x2a,0x87,0x69,0xa3,0x44,0x35,0x03,0xba,0xa2,0xe2,0x03,0x61,0x6b,0x35,0x3d,0xcc,0x40,0x62,0x5f,0xfb,0x58,0xe2,0xc7,0x81,0xed};
    static int          carry22      = 1;
    mpz_from_bytes(augend, augend22, 8);
    mpz_from_bytes(addend, addend22, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum22, sum_data, 32) != 0 || carry22 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend23[32] = {0xe9,0xe5,0xd1,0x64,0xa6,0x43,0x50,0x3b,0xf2,0x75,0xf5,0xab,0x90,0xa4,0xe2,0x3f,0xe3,0xe2,0x6a,0xc6,0x34,0xba,0x88,0x39,0x74,0xa4,0x57,0x4f,0x8d,0x85,0x92,0xf1};
    static std::uint8_t addend23[32] = {0xe4,0xb8,0xc4,0x4c,0x4f,0xe1,0xb6,0xe7,0xd3,0x7a,0x80,0x4e,0xc5,0x01,0x36,0x81,0x21,0x58,0xd5,0xed,0xa6,0x5d,0x7a,0xd2,0xfe,0x63,0xc8,0xda,0x71,0x63,0xb9,0x36};
    static std::uint8_t sum23[32]    = {0xce,0x9e,0x95,0xb0,0xf6,0x25,0x07,0x23,0xc5,0xf0,0x75,0xfa,0x55,0xa6,0x18,0xc1,0x05,0x3b,0x40,0xb3,0xdb,0x18,0x03,0x0c,0x73,0x08,0x20,0x29,0xfe,0xe9,0x4c,0x27};
    static int          carry23      = 1;
    mpz_from_bytes(augend, augend23, 8);
    mpz_from_bytes(addend, addend23, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum23, sum_data, 32) != 0 || carry23 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend24[32] = {0x9f,0x1d,0x48,0x88,0x47,0xa4,0xfd,0x62,0x6e,0x55,0xc3,0x70,0xc4,0x2d,0xe5,0x80,0xfc,0x2b,0xbe,0x13,0x8a,0x93,0x18,0xb4,0x7b,0xec,0x86,0x82,0xf5,0xcd,0xa3,0x1e};
    static std::uint8_t addend24[32] = {0x7a,0x4b,0xc3,0x85,0x23,0x85,0x60,0x1b,0xea,0x7b,0x94,0x29,0x6a,0x56,0xfd,0xa1,0x73,0x22,0x8e,0xcf,0x33,0x13,0x16,0x50,0x51,0x9c,0x89,0xd0,0x93,0x77,0x6c,0x34};
    static std::uint8_t sum24[32]    = {0x19,0x69,0x0c,0x0d,0x6b,0x2a,0x5d,0x7e,0x58,0xd1,0x57,0x9a,0x2e,0x84,0xe3,0x22,0x6f,0x4e,0x4c,0xe2,0xbd,0xa6,0x2f,0x04,0xcd,0x89,0x10,0x53,0x89,0x45,0x0f,0x52};
    static int          carry24      = 1;
    mpz_from_bytes(augend, augend24, 8);
    mpz_from_bytes(addend, addend24, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum24, sum_data, 32) != 0 || carry24 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend25[32] = {0x34,0x1f,0x9d,0x99,0x73,0xe3,0xdb,0x31,0xca,0xfe,0x5f,0x63,0xa7,0x0f,0xc4,0x00,0x42,0xa9,0x7c,0x46,0xd7,0x94,0x7a,0xd9,0x12,0x57,0xee,0xb7,0xc7,0x75,0x55,0x0e};
    static std::uint8_t addend25[32] = {0x3d,0x41,0x7d,0x65,0xe2,0x6d,0x4c,0x28,0x2b,0xee,0x9f,0x4d,0xc3,0xe4,0x8b,0x64,0x99,0xb8,0xf8,0x4e,0x1d,0x14,0x1b,0xdd,0x67,0x85,0x60,0x33,0x34,0x70,0x75,0xf8};
    static std::uint8_t sum25[32]    = {0x71,0x61,0x1a,0xff,0x56,0x51,0x27,0x59,0xf6,0xec,0xfe,0xb1,0x6a,0xf4,0x4f,0x64,0xdc,0x62,0x74,0x94,0xf4,0xa8,0x96,0xb6,0x79,0xdd,0x4e,0xea,0xfb,0xe5,0xcb,0x06};
    static int          carry25      = 0;
    mpz_from_bytes(augend, augend25, 8);
    mpz_from_bytes(addend, addend25, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum25, sum_data, 32) != 0 || carry25 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend26[32] = {0x66,0x37,0x02,0xe9,0x0c,0xce,0x3e,0xed,0x16,0x62,0x23,0x8a,0xf7,0xa7,0x4c,0x41,0x97,0x6a,0xcc,0x3e,0x1c,0x06,0x6e,0xb3,0xd0,0xf2,0xb6,0xe0,0xc6,0x02,0x9d,0xd2};
    static std::uint8_t addend26[32] = {0x6d,0x0b,0xb8,0x56,0xcd,0x22,0x58,0x7a,0x72,0xc6,0x86,0xfe,0x5d,0xbe,0x6d,0x3d,0xa7,0xe0,0xc1,0x63,0x8d,0x99,0x0e,0x83,0x25,0xbd,0xcc,0xb9,0x5e,0x8e,0x69,0x57};
    static std::uint8_t sum26[32]    = {0xd3,0x42,0xbb,0x3f,0xd9,0xf0,0x97,0x67,0x89,0x28,0xaa,0x89,0x55,0x65,0xb9,0x7f,0x3f,0x4b,0x8d,0xa1,0xa9,0x9f,0x7d,0x36,0xf6,0xb0,0x83,0x9a,0x24,0x91,0x07,0x29};
    static int          carry26      = 0;
    mpz_from_bytes(augend, augend26, 8);
    mpz_from_bytes(addend, addend26, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum26, sum_data, 32) != 0 || carry26 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend27[32] = {0xaf,0x42,0x22,0x37,0xd1,0x4c,0x3b,0x11,0x1f,0x9c,0xf1,0x60,0x71,0x25,0x93,0xf1,0x46,0x37,0x5d,0xa0,0xf0,0xd0,0xf4,0xca,0x92,0xa5,0xba,0xf2,0xbe,0xb4,0xe0,0xd2};
    static std::uint8_t addend27[32] = {0x05,0xf3,0xbf,0x3b,0x0f,0xed,0x71,0x45,0x78,0xe0,0x85,0x84,0x1b,0x1c,0xb7,0xb2,0x6b,0x17,0x59,0xe7,0xff,0xec,0xcb,0x4b,0xd8,0x56,0xf8,0x79,0x2c,0x58,0x28,0x0a};
    static std::uint8_t sum27[32]    = {0xb5,0x35,0xe1,0x72,0xe1,0x39,0xac,0x56,0x98,0x7d,0x76,0xe4,0x8c,0x42,0x4b,0xa3,0xb1,0x4e,0xb7,0x88,0xf0,0xbd,0xc0,0x16,0x6a,0xfc,0xb3,0x6b,0xeb,0x0d,0x08,0xdc};
    static int          carry27      = 0;
    mpz_from_bytes(augend, augend27, 8);
    mpz_from_bytes(addend, addend27, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum27, sum_data, 32) != 0 || carry27 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend28[32] = {0x69,0xd9,0x27,0x82,0x53,0x60,0x1b,0x1d,0x53,0x4e,0xda,0x8c,0x3a,0xb0,0x6f,0x91,0xba,0x96,0xa9,0x14,0x91,0x0a,0xba,0xe3,0xe4,0xdf,0xd9,0x35,0xd0,0xfa,0x60,0x71};
    static std::uint8_t addend28[32] = {0x49,0x79,0x6a,0x39,0xb6,0x1a,0x3b,0xa2,0xb4,0x27,0xd1,0x59,0xe6,0x70,0xe4,0xc4,0x35,0xe2,0x06,0xc8,0xc9,0x6e,0xe6,0x8d,0x28,0xc5,0x3b,0x1c,0x7f,0x70,0xe7,0x58};
    static std::uint8_t sum28[32]    = {0xb3,0x52,0x91,0xbc,0x09,0x7a,0x56,0xc0,0x07,0x76,0xab,0xe6,0x21,0x21,0x54,0x55,0xf0,0x78,0xaf,0xdd,0x5a,0x79,0xa1,0x71,0x0d,0xa5,0x14,0x52,0x50,0x6b,0x47,0xc9};
    static int          carry28      = 0;
    mpz_from_bytes(augend, augend28, 8);
    mpz_from_bytes(addend, addend28, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum28, sum_data, 32) != 0 || carry28 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend29[32] = {0x97,0x48,0x60,0xff,0x7c,0x78,0x26,0xbd,0x5f,0x09,0x84,0x55,0xd9,0xb4,0xc9,0x5c,0x85,0x9c,0xd9,0xb5,0x4f,0x06,0x24,0x06,0x9e,0xfe,0x75,0xb4,0xe0,0x6a,0x51,0x22};
    static std::uint8_t addend29[32] = {0x3a,0xf1,0x87,0x82,0x56,0xf8,0xda,0xd7,0x91,0xbd,0xca,0xac,0x17,0x8f,0x92,0x79,0x82,0xf3,0xa1,0x7c,0x5e,0xe1,0x72,0xfa,0x6b,0xa1,0xde,0x90,0x07,0xf1,0x67,0x7b};
    static std::uint8_t sum29[32]    = {0xd2,0x39,0xe8,0x81,0xd3,0x71,0x01,0x94,0xf0,0xc7,0x4f,0x01,0xf1,0x44,0x5b,0xd6,0x08,0x90,0x7b,0x31,0xad,0xe7,0x97,0x01,0x0a,0xa0,0x54,0x44,0xe8,0x5b,0xb8,0x9d};
    static int          carry29      = 0;
    mpz_from_bytes(augend, augend29, 8);
    mpz_from_bytes(addend, addend29, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum29, sum_data, 32) != 0 || carry29 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend30[32] = {0x8d,0x84,0xeb,0x3b,0xf7,0x84,0xf0,0x88,0x68,0x20,0x23,0x9c,0xad,0xbe,0x12,0x5a,0xb3,0xa3,0x55,0x93,0xf4,0x96,0xec,0x0b,0x1c,0x14,0xa2,0xfb,0xb5,0x8e,0xd7,0x3c};
    static std::uint8_t addend30[32] = {0x22,0x2b,0x3a,0x15,0xef,0xb3,0x30,0x41,0x13,0x2b,0x6d,0x56,0x58,0xa2,0x69,0x80,0xdc,0x70,0x61,0xfb,0x1b,0xa6,0xf1,0x51,0x86,0x22,0x44,0xeb,0x34,0xad,0xb5,0x1b};
    static std::uint8_t sum30[32]    = {0xaf,0xb0,0x25,0x51,0xe7,0x38,0x20,0xc9,0x7b,0x4b,0x90,0xf3,0x06,0x60,0x7b,0xdb,0x90,0x13,0xb7,0x8f,0x10,0x3d,0xdd,0x5c,0xa2,0x36,0xe7,0xe6,0xea,0x3c,0x8c,0x57};
    static int          carry30      = 0;
    mpz_from_bytes(augend, augend30, 8);
    mpz_from_bytes(addend, addend30, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum30, sum_data, 32) != 0 || carry30 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend31[32] = {0xfb,0x3a,0x1f,0xff,0xf5,0xe0,0x76,0x84,0x20,0xd5,0xbc,0xc6,0xd0,0x2b,0x6e,0x22,0x14,0x88,0x27,0x51,0x6c,0x92,0x78,0x96,0xd8,0x07,0x93,0xd8,0x82,0x2f,0xa3,0x56};
    static std::uint8_t addend31[32] = {0x01,0xde,0x51,0x04,0x17,0x8a,0x43,0x2d,0x71,0x50,0x1b,0x39,0xe9,0x09,0x3a,0xb9,0xdd,0xd8,0x2b,0xe4,0x16,0xae,0x07,0xe0,0xd8,0x61,0x75,0xe6,0xe2,0x22,0x88,0xfb};
    static std::uint8_t sum31[32]    = {0xfd,0x18,0x71,0x04,0x0d,0x6a,0xb9,0xb1,0x92,0x25,0xd8,0x00,0xb9,0x34,0xa8,0xdb,0xf2,0x60,0x53,0x35,0x83,0x40,0x80,0x77,0xb0,0x69,0x09,0xbf,0x64,0x52,0x2c,0x51};
    static int          carry31      = 0;
    mpz_from_bytes(augend, augend31, 8);
    mpz_from_bytes(addend, addend31, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum31, sum_data, 32) != 0 || carry31 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend32[32] = {0xa9,0x08,0x98,0xc7,0xf0,0xb6,0x11,0xf6,0x0e,0x47,0x31,0x4d,0x43,0xc4,0x2e,0xc7,0xce,0xb2,0x68,0x4a,0x18,0xf0,0xe5,0x96,0xbe,0x6f,0x17,0x6f,0x56,0xce,0x50,0xd7};
    static std::uint8_t addend32[32] = {0xdd,0x19,0x08,0x1a,0x99,0x8d,0x9c,0xce,0x16,0x15,0x4a,0xd1,0xc6,0x8e,0xbf,0x30,0xcb,0x85,0xa7,0xff,0x4d,0xb0,0x8b,0x63,0x8d,0xd3,0x39,0x29,0xbc,0x01,0x4f,0x2f};
    static std::uint8_t sum32[32]    = {0x86,0x21,0xa0,0xe2,0x8a,0x43,0xae,0xc4,0x24,0x5c,0x7c,0x1f,0x0a,0x52,0xed,0xf8,0x9a,0x38,0x10,0x49,0x66,0xa1,0x70,0xfa,0x4c,0x42,0x50,0x99,0x12,0xcf,0xa0,0x06};
    static int          carry32      = 1;
    mpz_from_bytes(augend, augend32, 8);
    mpz_from_bytes(addend, addend32, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum32, sum_data, 32) != 0 || carry32 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend33[32] = {0x39,0x9b,0x03,0x4a,0x62,0x97,0xba,0x84,0x56,0x2a,0x4f,0x9c,0x40,0x95,0xfb,0x96,0xba,0x19,0xf2,0xe0,0xe7,0x5b,0x9d,0xce,0x0b,0x6d,0x8f,0x39,0x28,0x24,0x94,0x38};
    static std::uint8_t addend33[32] = {0xde,0xea,0xf2,0xcc,0x13,0x6b,0x0e,0xea,0xdb,0x02,0xa0,0xd4,0xef,0x92,0x97,0x8f,0xa4,0xae,0x75,0x4a,0x04,0x74,0xd4,0x33,0xb2,0xd1,0xa2,0x96,0x6d,0xfb,0xb0,0x53};
    static std::uint8_t sum33[32]    = {0x18,0x85,0xf6,0x16,0x76,0x02,0xc9,0x6f,0x31,0x2c,0xf0,0x71,0x30,0x28,0x93,0x26,0x5e,0xc8,0x68,0x2a,0xeb,0xd0,0x72,0x01,0xbe,0x3f,0x31,0xcf,0x96,0x20,0x44,0x8b};
    static int          carry33      = 1;
    mpz_from_bytes(augend, augend33, 8);
    mpz_from_bytes(addend, addend33, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum33, sum_data, 32) != 0 || carry33 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend34[32] = {0xe9,0x6d,0x37,0xf8,0xa3,0x68,0x58,0x4d,0xfd,0xdc,0x48,0x37,0x1d,0xe9,0xaf,0xb1,0x1d,0x0a,0x84,0x6b,0xde,0xbf,0xb4,0x2d,0x42,0x72,0x9f,0x90,0x96,0xd5,0xb0,0x06};
    static std::uint8_t addend34[32] = {0x38,0x5c,0xb1,0xe4,0xb5,0x65,0x17,0x46,0xda,0x6b,0x8d,0x75,0xe5,0xa1,0xa3,0x73,0x4e,0xd0,0xe7,0x41,0xbe,0xad,0xa1,0x67,0x04,0x8e,0x43,0x1b,0x8e,0x3b,0x4d,0x86};
    static std::uint8_t sum34[32]    = {0x21,0xc9,0xe9,0xdd,0x58,0xcd,0x6f,0x94,0xd8,0x47,0xd5,0xad,0x03,0x8b,0x53,0x24,0x6b,0xdb,0x6b,0xad,0x9d,0x6d,0x55,0x94,0x47,0x00,0xe2,0xac,0x25,0x10,0xfd,0x8c};
    static int          carry34      = 1;
    mpz_from_bytes(augend, augend34, 8);
    mpz_from_bytes(addend, addend34, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum34, sum_data, 32) != 0 || carry34 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend35[32] = {0xd4,0xb1,0x3e,0x55,0x33,0xa7,0x89,0x3f,0xef,0x26,0xf4,0xd9,0xb9,0xab,0x00,0xba,0x47,0xf1,0xa4,0xee,0xe9,0x70,0x7e,0x3a,0x2c,0xce,0xc5,0xed,0xb0,0xe0,0xef,0xb5};
    static std::uint8_t addend35[32] = {0xb6,0xdd,0xbd,0x09,0x29,0x8a,0xf1,0x79,0x7c,0x07,0x22,0x33,0x0e,0x8b,0xd2,0xbd,0x0a,0x11,0xcd,0xd1,0xcc,0x01,0x05,0x1a,0xc3,0xcd,0xd9,0x3d,0xf6,0x8b,0xae,0x4d};
    static std::uint8_t sum35[32]    = {0x8b,0x8e,0xfb,0x5e,0x5d,0x32,0x7a,0xb9,0x6b,0x2e,0x17,0x0c,0xc8,0x36,0xd3,0x77,0x52,0x03,0x72,0xc0,0xb5,0x71,0x83,0x54,0xf0,0x9c,0x9f,0x2b,0xa7,0x6c,0x9e,0x02};
    static int          carry35      = 1;
    mpz_from_bytes(augend, augend35, 8);
    mpz_from_bytes(addend, addend35, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum35, sum_data, 32) != 0 || carry35 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend36[32] = {0x1b,0x4e,0x05,0x1d,0x9b,0xee,0x32,0xf6,0xc1,0x24,0xeb,0xe2,0xde,0x89,0x12,0x03,0x35,0xaa,0x41,0x3f,0x0e,0xba,0xc9,0xd7,0x12,0xe0,0x37,0x39,0x3b,0x20,0x24,0x07};
    static std::uint8_t addend36[32] = {0xb1,0x29,0x44,0x7a,0x71,0x5f,0x0b,0x59,0x36,0x78,0x96,0xd0,0xed,0x46,0xd9,0x24,0x9a,0xc0,0x6a,0x5e,0xa6,0x7b,0xe8,0xa9,0xd1,0xab,0x6e,0x89,0x90,0x46,0x07,0x8e};
    static std::uint8_t sum36[32]    = {0xcc,0x77,0x49,0x98,0x0d,0x4d,0x3e,0x4f,0xf7,0x9d,0x82,0xb3,0xcb,0xcf,0xeb,0x27,0xd0,0x6a,0xab,0x9d,0xb5,0x36,0xb2,0x80,0xe4,0x8b,0xa5,0xc2,0xcb,0x66,0x2b,0x95};
    static int          carry36      = 0;
    mpz_from_bytes(augend, augend36, 8);
    mpz_from_bytes(addend, addend36, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum36, sum_data, 32) != 0 || carry36 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend37[32] = {0x47,0x74,0x7a,0x3b,0xef,0x94,0xe9,0x78,0xe4,0x57,0x61,0x8b,0xb2,0xe7,0x03,0x0e,0xf6,0x02,0xb5,0xa1,0xf2,0xad,0x6e,0x58,0x2d,0xc0,0xb7,0x8b,0x2e,0x13,0xd7,0xb0};
    static std::uint8_t addend37[32] = {0x5f,0x74,0x55,0x2c,0x91,0x7e,0xf4,0xf4,0x3a,0x20,0x54,0xaa,0x22,0x83,0x92,0xf2,0x19,0x87,0x44,0x5e,0xb9,0x9b,0x6d,0x5b,0xd3,0x48,0xcd,0x50,0xc8,0x86,0x20,0xe2};
    static std::uint8_t sum37[32]    = {0xa6,0xe8,0xcf,0x68,0x81,0x13,0xde,0x6d,0x1e,0x77,0xb6,0x35,0xd5,0x6a,0x96,0x01,0x0f,0x89,0xfa,0x00,0xac,0x48,0xdb,0xb4,0x01,0x09,0x84,0xdb,0xf6,0x99,0xf8,0x92};
    static int          carry37      = 0;
    mpz_from_bytes(augend, augend37, 8);
    mpz_from_bytes(addend, addend37, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum37, sum_data, 32) != 0 || carry37 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend38[32] = {0xbf,0x0c,0xeb,0x78,0x6a,0x1a,0x52,0xb8,0xec,0x6e,0x80,0xd8,0x54,0x94,0x5e,0x71,0x33,0x98,0x93,0x0f,0x0a,0x99,0x11,0xc5,0x44,0x12,0xc8,0x93,0x0a,0xe8,0xc4,0xc9};
    static std::uint8_t addend38[32] = {0x45,0xea,0x6a,0xdc,0xdd,0xca,0x69,0xa7,0xc9,0x7e,0x01,0xcc,0x53,0xe6,0x8a,0xa2,0x5e,0xf9,0x6e,0xa5,0xfb,0xca,0xb4,0x51,0x93,0x19,0x6e,0x7e,0xa3,0xa2,0x39,0xfe};
    static std::uint8_t sum38[32]    = {0x04,0xf7,0x56,0x55,0x47,0xe4,0xbc,0x60,0xb5,0xec,0x82,0xa4,0xa8,0x7a,0xe9,0x13,0x92,0x92,0x01,0xb5,0x06,0x63,0xc6,0x16,0xd7,0x2c,0x37,0x11,0xae,0x8a,0xfe,0xc7};
    static int          carry38      = 1;
    mpz_from_bytes(augend, augend38, 8);
    mpz_from_bytes(addend, addend38, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum38, sum_data, 32) != 0 || carry38 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend39[32] = {0x7b,0xa2,0xe0,0x7f,0xd2,0x2c,0x2a,0xae,0xd3,0xac,0x8d,0x22,0x16,0x9f,0xfa,0xb6,0xb4,0x6f,0x18,0xda,0xfd,0xb6,0x9e,0xe7,0xfe,0xef,0x58,0x12,0x3e,0x64,0xe6,0x23};
    static std::uint8_t addend39[32] = {0x0d,0xc8,0x39,0x68,0xe7,0x9f,0xcd,0xc1,0xdd,0x4f,0x36,0xd9,0x6c,0xa3,0x23,0x9f,0x70,0x8f,0x28,0x77,0xa4,0xf9,0xe4,0x13,0x27,0x0c,0xb4,0x0b,0xa7,0xf2,0xa3,0x9a};
    static std::uint8_t sum39[32]    = {0x89,0x6b,0x19,0xe8,0xb9,0xcb,0xf8,0x70,0xb0,0xfb,0xc3,0xfb,0x83,0x43,0x1e,0x56,0x24,0xfe,0x41,0x52,0xa2,0xb0,0x82,0xfb,0x25,0xfc,0x0c,0x1d,0xe6,0x57,0x89,0xbd};
    static int          carry39      = 0;
    mpz_from_bytes(augend, augend39, 8);
    mpz_from_bytes(addend, addend39, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum39, sum_data, 32) != 0 || carry39 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend40[32] = {0x92,0x82,0x30,0x0f,0x99,0xbe,0x78,0x76,0xd6,0x0b,0xb4,0x4c,0x82,0x25,0xf6,0xa5,0xbf,0x9e,0xaf,0x6a,0xc3,0xfd,0x76,0x2a,0x03,0xc3,0x93,0x85,0x3e,0x86,0xb8,0x1d};
    static std::uint8_t addend40[32] = {0x46,0xa5,0x63,0xe6,0xcb,0x13,0x10,0x40,0x90,0xd8,0x03,0x42,0xfd,0xf3,0xe5,0xae,0x83,0x5f,0xf6,0x35,0x3f,0x86,0x55,0xe9,0xc2,0xbc,0x73,0x50,0x46,0x49,0xea,0xbd};
    static std::uint8_t sum40[32]    = {0xd9,0x27,0x93,0xf6,0x64,0xd1,0x88,0xb7,0x66,0xe3,0xb7,0x8f,0x80,0x19,0xdc,0x54,0x42,0xfe,0xa5,0xa0,0x03,0x83,0xcc,0x13,0xc6,0x80,0x06,0xd5,0x84,0xd0,0xa2,0xda};
    static int          carry40      = 0;
    mpz_from_bytes(augend, augend40, 8);
    mpz_from_bytes(addend, addend40, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum40, sum_data, 32) != 0 || carry40 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend41[32] = {0x49,0xb8,0xad,0xe1,0xf2,0xa3,0x09,0x94,0x9d,0xea,0x97,0x8f,0xd7,0xc1,0x9a,0x5c,0x5a,0xc1,0x2c,0x52,0xe8,0x2d,0x7f,0x38,0x21,0xf1,0xde,0x57,0x7d,0x0d,0x36,0x60};
    static std::uint8_t addend41[32] = {0x5a,0xf5,0x1f,0xb5,0x83,0x41,0x5b,0xbb,0xbd,0xf8,0x8e,0x4a,0xa4,0x90,0x72,0x44,0x61,0x2c,0xe9,0x2f,0xe3,0x12,0xf3,0x09,0x5a,0xea,0x6c,0xdd,0xfe,0xe1,0x38,0xf0};
    static std::uint8_t sum41[32]    = {0xa4,0xad,0xcd,0x97,0x75,0xe4,0x65,0x50,0x5b,0xe3,0x25,0xda,0x7c,0x52,0x0c,0xa0,0xbb,0xee,0x15,0x82,0xcb,0x40,0x72,0x41,0x7c,0xdc,0x4b,0x35,0x7b,0xee,0x6f,0x50};
    static int          carry41      = 0;
    mpz_from_bytes(augend, augend41, 8);
    mpz_from_bytes(addend, addend41, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum41, sum_data, 32) != 0 || carry41 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend42[32] = {0xe5,0x22,0x23,0x3f,0x2b,0x75,0x60,0x77,0x45,0x5c,0xa2,0x80,0xc2,0x30,0x59,0x17,0x99,0x04,0x86,0x89,0xcd,0x6d,0x18,0x70,0x1c,0x7d,0xd9,0xa2,0xef,0x0e,0x00,0x7b};
    static std::uint8_t addend42[32] = {0x0f,0x80,0x7b,0xad,0xa7,0x29,0xd3,0x29,0x49,0xb0,0xd7,0x31,0x53,0x0e,0xcb,0x26,0x88,0x15,0xd4,0x54,0x02,0x72,0x28,0x61,0x14,0x66,0x58,0x10,0xca,0xd1,0x08,0x67};
    static std::uint8_t sum42[32]    = {0xf4,0xa2,0x9e,0xec,0xd2,0x9f,0x33,0xa0,0x8f,0x0d,0x79,0xb2,0x15,0x3f,0x24,0x3e,0x21,0x1a,0x5a,0xdd,0xcf,0xdf,0x40,0xd1,0x30,0xe4,0x31,0xb3,0xb9,0xdf,0x08,0xe2};
    static int          carry42      = 0;
    mpz_from_bytes(augend, augend42, 8);
    mpz_from_bytes(addend, addend42, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum42, sum_data, 32) != 0 || carry42 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend43[32] = {0x92,0x48,0x8f,0x07,0x01,0x41,0xa2,0x27,0xef,0x6e,0x7b,0xf8,0xe8,0x43,0xb3,0xdd,0xc4,0x1c,0x25,0x58,0x7c,0xd2,0xff,0x3b,0x2c,0xf5,0x55,0x0b,0xda,0x9e,0x74,0x39};
    static std::uint8_t addend43[32] = {0xa1,0x3e,0x1d,0x84,0x2c,0xb4,0xa0,0x1e,0xba,0xea,0x95,0x6c,0x12,0x0c,0x7c,0x26,0xaf,0x02,0xde,0xf7,0x60,0x54,0xd4,0xd6,0xc8,0x94,0x19,0x01,0x04,0x98,0xa9,0x1e};
    static std::uint8_t sum43[32]    = {0x33,0x86,0xac,0x8b,0x2d,0xf6,0x42,0x46,0xaa,0x59,0x11,0x64,0xfa,0x50,0x30,0x04,0x73,0x1f,0x04,0x4f,0xdd,0x27,0xd4,0x11,0xf5,0x89,0x6e,0x0c,0xdf,0x37,0x1d,0x57};
    static int          carry43      = 1;
    mpz_from_bytes(augend, augend43, 8);
    mpz_from_bytes(addend, addend43, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum43, sum_data, 32) != 0 || carry43 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend44[32] = {0xfc,0xb7,0x1f,0x8c,0xaf,0x07,0x1a,0x4f,0x69,0x17,0xd7,0x2c,0xa7,0x2b,0xe6,0x41,0xd3,0x6c,0x36,0xb4,0x6e,0xb3,0x13,0x10,0x1f,0xd3,0x91,0x02,0x1d,0x54,0xf8,0x39};
    static std::uint8_t addend44[32] = {0x88,0x9e,0x6c,0x73,0x82,0xb0,0x9b,0x4b,0x71,0xc3,0x6a,0x88,0x28,0x63,0x4f,0x23,0xe7,0x8a,0x9e,0x43,0x5b,0x5e,0x51,0x63,0x5c,0xb1,0x76,0xb8,0xa3,0x3e,0x37,0x0d};
    static std::uint8_t sum44[32]    = {0x85,0x55,0x8c,0x00,0x31,0xb7,0xb5,0x9a,0xda,0xdb,0x41,0xb4,0xcf,0x8f,0x35,0x65,0xba,0xf6,0xd4,0xf7,0xca,0x11,0x64,0x73,0x7c,0x85,0x07,0xba,0xc0,0x93,0x2f,0x46};
    static int          carry44      = 1;
    mpz_from_bytes(augend, augend44, 8);
    mpz_from_bytes(addend, addend44, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum44, sum_data, 32) != 0 || carry44 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend45[32] = {0x53,0xa1,0xa0,0xdd,0xcd,0x24,0x25,0x85,0xf2,0x3e,0x4a,0x0c,0x5e,0x52,0x0f,0x6e,0xd4,0x19,0x5a,0x76,0x42,0x1e,0x1a,0x76,0x9f,0xb3,0x9c,0xc1,0xa2,0x68,0xad,0x78};
    static std::uint8_t addend45[32] = {0xe2,0x18,0x8b,0xa0,0xc1,0xa9,0x9c,0x42,0x96,0x77,0x15,0xf0,0x76,0x4a,0x6c,0x2f,0x6b,0x27,0x77,0x80,0x5f,0x98,0xc7,0x90,0x36,0xab,0x75,0xe8,0x6f,0xe9,0x2e,0x8b};
    static std::uint8_t sum45[32]    = {0x35,0xba,0x2c,0x7e,0x8e,0xcd,0xc1,0xc8,0x88,0xb5,0x5f,0xfc,0xd4,0x9c,0x7b,0x9e,0x3f,0x40,0xd1,0xf6,0xa1,0xb6,0xe2,0x06,0xd6,0x5f,0x12,0xaa,0x12,0x51,0xdc,0x03};
    static int          carry45      = 1;
    mpz_from_bytes(augend, augend45, 8);
    mpz_from_bytes(addend, addend45, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum45, sum_data, 32) != 0 || carry45 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend46[32] = {0xd6,0x4e,0x43,0x7d,0x2c,0xeb,0xd0,0x6d,0x2d,0x25,0xe5,0xc5,0xe3,0xd9,0x30,0x12,0xce,0x0e,0xcd,0xb1,0x89,0x0e,0xfd,0xc3,0x1b,0x21,0x33,0x3c,0xa2,0xf8,0x9e,0xc4};
    static std::uint8_t addend46[32] = {0xd7,0xf4,0xca,0x49,0x49,0x3b,0x91,0x4f,0x0d,0x0b,0xb3,0x7d,0x87,0xbe,0x93,0xb6,0x49,0x6b,0xda,0xae,0x16,0x14,0xdb,0x76,0x06,0x96,0x10,0x3f,0xbb,0x0b,0x0a,0x7c};
    static std::uint8_t sum46[32]    = {0xae,0x43,0x0d,0xc6,0x76,0x27,0x61,0xbc,0x3a,0x31,0x99,0x43,0x6b,0x97,0xc3,0xc9,0x17,0x7a,0xa8,0x5f,0x9f,0x23,0xd9,0x39,0x21,0xb7,0x43,0x7c,0x5e,0x03,0xa9,0x40};
    static int          carry46      = 1;
    mpz_from_bytes(augend, augend46, 8);
    mpz_from_bytes(addend, addend46, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum46, sum_data, 32) != 0 || carry46 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend47[32] = {0x4b,0x37,0x4b,0x99,0xd4,0x6c,0x01,0x71,0x9b,0xee,0xe5,0xc0,0xc3,0xc7,0x95,0x3d,0x3f,0x84,0x7e,0xce,0x8a,0x30,0x8c,0x13,0x54,0x28,0x1f,0xb9,0xc2,0x90,0x39,0x03};
    static std::uint8_t addend47[32] = {0x24,0x62,0x8f,0xe6,0x20,0xd4,0x6e,0x10,0xb5,0x2b,0x84,0x7d,0x29,0xfb,0x10,0x34,0x33,0x7f,0x68,0xae,0xca,0xe9,0xf9,0x39,0xac,0x8b,0xc1,0xc9,0x45,0xe3,0xe1,0xd3};
    static std::uint8_t sum47[32]    = {0x6f,0x99,0xdb,0x7f,0xf5,0x40,0x6f,0x82,0x51,0x1a,0x6a,0x3d,0xed,0xc2,0xa5,0x71,0x73,0x03,0xe7,0x7d,0x55,0x1a,0x85,0x4d,0x00,0xb3,0xe1,0x83,0x08,0x74,0x1a,0xd6};
    static int          carry47      = 0;
    mpz_from_bytes(augend, augend47, 8);
    mpz_from_bytes(addend, addend47, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum47, sum_data, 32) != 0 || carry47 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend48[32] = {0xed,0x95,0x35,0xe3,0x86,0x65,0x5e,0x3d,0xac,0xd6,0xa1,0x1f,0x79,0x42,0x96,0xef,0x6b,0x3d,0x21,0x05,0x1f,0x48,0x86,0xc1,0x55,0xd6,0xb3,0xaf,0x60,0x01,0x71,0xfb};
    static std::uint8_t addend48[32] = {0x33,0x9e,0x87,0xdd,0xde,0xe8,0x1e,0xd1,0xdf,0x6a,0xb2,0x81,0x4f,0xc8,0x57,0x03,0x8f,0xca,0x29,0x5e,0x35,0x12,0x71,0xde,0x99,0x30,0x11,0x81,0x4a,0xb9,0x1d,0x4f};
    static std::uint8_t sum48[32]    = {0x21,0x33,0xbd,0xc1,0x65,0x4d,0x7d,0x0f,0x8c,0x41,0x53,0xa0,0xc9,0x0a,0xed,0xf2,0xfb,0x07,0x4a,0x63,0x54,0x5a,0xf8,0x9f,0xef,0x06,0xc5,0x30,0xaa,0xba,0x8f,0x4a};
    static int          carry48      = 1;
    mpz_from_bytes(augend, augend48, 8);
    mpz_from_bytes(addend, addend48, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum48, sum_data, 32) != 0 || carry48 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend49[32] = {0x97,0x15,0x3a,0xe9,0xf7,0x31,0x56,0xcc,0x8d,0x41,0x76,0x08,0x73,0xe9,0x58,0x2b,0x00,0x77,0xd0,0x3f,0xc8,0x33,0x85,0x44,0x7f,0xac,0xfa,0xaf,0x65,0x9d,0xc6,0x6b};
    static std::uint8_t addend49[32] = {0x9c,0x93,0xe0,0x7e,0xf7,0xff,0xad,0x6b,0x5e,0x49,0x97,0x9d,0x38,0x94,0x99,0xca,0xc4,0x06,0xa1,0x59,0x5e,0x7f,0x33,0x15,0xec,0x5b,0xee,0xad,0x79,0xb6,0xe0,0x43};
    static std::uint8_t sum49[32]    = {0x33,0xa9,0x1b,0x68,0xef,0x31,0x04,0x37,0xeb,0x8b,0x0d,0xa5,0xac,0x7d,0xf1,0xf5,0xc4,0x7e,0x71,0x99,0x26,0xb2,0xb8,0x5a,0x6c,0x08,0xe9,0x5c,0xdf,0x54,0xa6,0xae};
    static int          carry49      = 1;
    mpz_from_bytes(augend, augend49, 8);
    mpz_from_bytes(addend, addend49, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum49, sum_data, 32) != 0 || carry49 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend50[32] = {0xd2,0x28,0x3b,0x25,0x57,0xd7,0xcc,0xa8,0x90,0xd4,0xa0,0xe9,0xee,0xb2,0xc4,0x2b,0x95,0x7e,0xac,0xb4,0xb4,0x7b,0xd0,0x63,0xd9,0xc1,0x6e,0x74,0xdc,0x89,0x5b,0xf8};
    static std::uint8_t addend50[32] = {0xaa,0x0f,0x51,0xc3,0xe0,0xfd,0x0a,0x67,0xd6,0xa8,0xac,0x77,0xc0,0x4e,0x63,0xd1,0xfd,0x85,0x7b,0x8f,0x46,0x8e,0x80,0x00,0x68,0xa6,0xf0,0x83,0x7a,0x24,0x1d,0xcc};
    static std::uint8_t sum50[32]    = {0x7c,0x37,0x8c,0xe9,0x38,0xd4,0xd7,0x10,0x67,0x7d,0x4d,0x61,0xaf,0x01,0x27,0xfd,0x93,0x04,0x28,0x43,0xfb,0x0a,0x50,0x64,0x42,0x68,0x5e,0xf8,0x56,0xad,0x79,0xc4};
    static int          carry50      = 1;
    mpz_from_bytes(augend, augend50, 8);
    mpz_from_bytes(addend, addend50, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum50, sum_data, 32) != 0 || carry50 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend51[32] = {0x44,0xb8,0xa9,0xfc,0x91,0x83,0xf8,0x12,0x64,0x1e,0x49,0x1f,0xf7,0xca,0x8b,0x2c,0xaf,0x4f,0x43,0x0c,0x29,0x3f,0x3e,0xcd,0x0c,0x91,0xfd,0x45,0x45,0xef,0x4d,0x6f};
    static std::uint8_t addend51[32] = {0x06,0xb5,0x09,0x26,0x1d,0xad,0x89,0xd1,0xa1,0xdb,0xf8,0x4a,0x9e,0x22,0x22,0x1b,0xe8,0x41,0xf8,0x67,0xa7,0xf5,0x72,0x83,0xca,0x2e,0x46,0xf1,0xfc,0x12,0x92,0xc3};
    static std::uint8_t sum51[32]    = {0x4b,0x6d,0xb3,0x22,0xaf,0x31,0x81,0xe4,0x05,0xfa,0x41,0x6a,0x95,0xec,0xad,0x48,0x97,0x91,0x3b,0x73,0xd1,0x34,0xb1,0x50,0xd6,0xc0,0x44,0x37,0x42,0x01,0xe0,0x32};
    static int          carry51      = 0;
    mpz_from_bytes(augend, augend51, 8);
    mpz_from_bytes(addend, addend51, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum51, sum_data, 32) != 0 || carry51 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend52[32] = {0x72,0x48,0x59,0xf2,0x38,0xac,0x15,0x87,0xba,0xe3,0x1f,0x91,0x42,0x1c,0x00,0x72,0x75,0x28,0x75,0xe2,0x2f,0xce,0xb8,0xfc,0x8d,0xa5,0x3d,0x6e,0x4e,0x80,0xcb,0xb9};
    static std::uint8_t addend52[32] = {0x9f,0xfe,0x9a,0xe1,0xe9,0x74,0x2d,0xe7,0x90,0x32,0x2e,0x05,0x03,0x9f,0xfa,0x2c,0xbf,0xd7,0xc2,0x2d,0xb4,0x13,0x56,0x43,0xd7,0xb0,0x3a,0x0f,0xf6,0xb5,0x8f,0xf6};
    static std::uint8_t sum52[32]    = {0x12,0x46,0xf4,0xd4,0x22,0x20,0x43,0x6f,0x4b,0x15,0x4d,0x96,0x45,0xbb,0xfa,0x9f,0x35,0x00,0x38,0x0f,0xe3,0xe2,0x0f,0x40,0x65,0x55,0x77,0x7e,0x45,0x36,0x5b,0xaf};
    static int          carry52      = 1;
    mpz_from_bytes(augend, augend52, 8);
    mpz_from_bytes(addend, addend52, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum52, sum_data, 32) != 0 || carry52 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend53[32] = {0x56,0x90,0x9f,0xa8,0x57,0xe5,0xf3,0xc1,0x0c,0x86,0x8d,0xfc,0xb5,0x35,0x53,0x73,0x48,0x9b,0x6d,0x3e,0x0f,0xfa,0x22,0x05,0x77,0x37,0x4e,0xd8,0xaa,0xf3,0x03,0x80};
    static std::uint8_t addend53[32] = {0x6e,0x8d,0x40,0x15,0x5a,0xa0,0x47,0x12,0x75,0xe0,0x41,0xd0,0xe4,0x7f,0x7b,0xa6,0x3c,0xd3,0x38,0x33,0xdb,0x4f,0xa6,0xde,0x90,0xce,0xc6,0x72,0x96,0xb1,0x31,0x56};
    static std::uint8_t sum53[32]    = {0xc5,0x1d,0xdf,0xbd,0xb2,0x86,0x3a,0xd3,0x82,0x66,0xcf,0xcd,0x99,0xb4,0xcf,0x19,0x85,0x6e,0xa5,0x71,0xeb,0x49,0xc8,0xe4,0x08,0x06,0x15,0x4b,0x41,0xa4,0x34,0xd6};
    static int          carry53      = 0;
    mpz_from_bytes(augend, augend53, 8);
    mpz_from_bytes(addend, addend53, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum53, sum_data, 32) != 0 || carry53 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend54[32] = {0xc0,0xa3,0x60,0x2c,0x41,0x70,0x16,0x84,0xe6,0x8f,0xdd,0x6f,0x45,0x9e,0xb6,0x37,0x90,0xe8,0x0a,0x9f,0x39,0x97,0x1b,0xf0,0xd5,0xe0,0x7c,0x2b,0x2b,0x36,0x82,0x60};
    static std::uint8_t addend54[32] = {0xca,0x9a,0x7e,0xa9,0x3f,0x7f,0x50,0xa1,0x56,0xd9,0xbd,0xef,0x93,0xf6,0x38,0x6f,0xcd,0xe8,0xba,0xc4,0x60,0x66,0x72,0x2e,0x07,0xaf,0x70,0x84,0x7a,0x9b,0x12,0xb2};
    static std::uint8_t sum54[32]    = {0x8b,0x3d,0xde,0xd5,0x80,0xef,0x67,0x26,0x3d,0x69,0x9b,0x5e,0xd9,0x94,0xee,0xa7,0x5e,0xd0,0xc5,0x63,0x99,0xfd,0x8e,0x1e,0xdd,0x8f,0xec,0xaf,0xa5,0xd1,0x95,0x12};
    static int          carry54      = 1;
    mpz_from_bytes(augend, augend54, 8);
    mpz_from_bytes(addend, addend54, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum54, sum_data, 32) != 0 || carry54 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend55[32] = {0x47,0xa9,0x73,0x8a,0xc3,0x7c,0x7d,0xd9,0x18,0xff,0xb9,0x1f,0x6f,0xf4,0x9c,0xa9,0x75,0x72,0xae,0x2c,0x04,0x1c,0x69,0xef,0x73,0xac,0xae,0x92,0x0a,0x58,0xc9,0xbd};
    static std::uint8_t addend55[32] = {0x1f,0xb9,0x01,0xb6,0xea,0x24,0xb9,0xdd,0x40,0x75,0xf0,0x6e,0xad,0x8a,0x54,0x42,0x4e,0x30,0x8a,0x39,0x4a,0xa6,0xfb,0x25,0xc0,0xe2,0xe1,0x37,0xe2,0x21,0xab,0x29};
    static std::uint8_t sum55[32]    = {0x67,0x62,0x75,0x41,0xad,0xa1,0x37,0xb6,0x59,0x75,0xa9,0x8e,0x1d,0x7e,0xf0,0xeb,0xc3,0xa3,0x38,0x65,0x4e,0xc3,0x65,0x15,0x34,0x8f,0x8f,0xc9,0xec,0x7a,0x74,0xe6};
    static int          carry55      = 0;
    mpz_from_bytes(augend, augend55, 8);
    mpz_from_bytes(addend, addend55, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum55, sum_data, 32) != 0 || carry55 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend56[32] = {0x3e,0x23,0x29,0x04,0x64,0x8c,0x73,0xb2,0xc9,0xef,0x6d,0xdf,0xd5,0xa5,0x1c,0x8b,0xca,0x01,0xb3,0x51,0x49,0x19,0x51,0x61,0xe2,0xb4,0xd8,0x5f,0x24,0xc7,0x8d,0x90};
    static std::uint8_t addend56[32] = {0xa1,0x67,0xe0,0x48,0xb9,0x79,0x58,0x2f,0xb7,0xdc,0x50,0xde,0x9b,0xfc,0x03,0xac,0xbc,0x23,0x34,0x29,0xf9,0x90,0xa6,0x0d,0xcf,0x85,0x35,0xf2,0x02,0xc1,0xaa,0x59};
    static std::uint8_t sum56[32]    = {0xdf,0x8b,0x09,0x4d,0x1e,0x05,0xcb,0xe2,0x81,0xcb,0xbe,0xbe,0x71,0xa1,0x20,0x38,0x86,0x24,0xe7,0x7b,0x42,0xa9,0xf7,0x6f,0xb2,0x3a,0x0e,0x51,0x27,0x89,0x37,0xe9};
    static int          carry56      = 0;
    mpz_from_bytes(augend, augend56, 8);
    mpz_from_bytes(addend, addend56, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum56, sum_data, 32) != 0 || carry56 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend57[32] = {0xf7,0xa9,0x36,0x4b,0x18,0x14,0x76,0x52,0xaf,0xc3,0x98,0x09,0x6b,0x81,0x4f,0x2a,0x30,0x1f,0x8d,0x0e,0xf7,0x4f,0xee,0x8c,0x40,0x73,0xa7,0x1b,0x80,0xfa,0xa3,0xc3};
    static std::uint8_t addend57[32] = {0xdc,0x18,0x63,0xdd,0x17,0x48,0x01,0xa9,0x84,0x62,0x66,0xcb,0x65,0x0b,0x0e,0xf6,0x98,0xa9,0xc2,0x31,0x75,0x3e,0x24,0x71,0x57,0x3e,0xbc,0x03,0xfc,0x4c,0x7c,0xa5};
    static std::uint8_t sum57[32]    = {0xd3,0xc1,0x9a,0x28,0x2f,0x5c,0x77,0xfc,0x34,0x25,0xfe,0xd4,0xd0,0x8c,0x5e,0x20,0xc8,0xc9,0x4f,0x40,0x6c,0x8e,0x12,0xfd,0x97,0xb2,0x63,0x1f,0x7d,0x47,0x20,0x68};
    static int          carry57      = 1;
    mpz_from_bytes(augend, augend57, 8);
    mpz_from_bytes(addend, addend57, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum57, sum_data, 32) != 0 || carry57 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend58[32] = {0xa5,0xee,0x04,0x65,0x63,0x80,0xfd,0x28,0x3f,0xba,0x0f,0x8b,0x4b,0x85,0x3f,0x3e,0xba,0xf0,0xd3,0x1d,0x0e,0xe7,0x23,0x2b,0x90,0x0d,0x86,0xbb,0xbc,0xf9,0x14,0x76};
    static std::uint8_t addend58[32] = {0x8c,0x52,0x55,0x0f,0x17,0x40,0xa8,0x11,0x1d,0xb8,0xc0,0xcf,0xaf,0x4d,0x6a,0x80,0x07,0x27,0x16,0xb1,0x7c,0x9f,0x65,0xe0,0xf9,0xc7,0x1b,0xbf,0x66,0xc2,0x5b,0x1e};
    static std::uint8_t sum58[32]    = {0x32,0x40,0x59,0x74,0x7a,0xc1,0xa5,0x39,0x5d,0x72,0xd0,0x5a,0xfa,0xd2,0xa9,0xbe,0xc2,0x17,0xe9,0xce,0x8b,0x86,0x89,0x0c,0x89,0xd4,0xa2,0x7b,0x23,0xbb,0x6f,0x94};
    static int          carry58      = 1;
    mpz_from_bytes(augend, augend58, 8);
    mpz_from_bytes(addend, addend58, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum58, sum_data, 32) != 0 || carry58 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend59[32] = {0x70,0x97,0xd7,0xc3,0xad,0xed,0xb9,0xde,0x36,0x11,0xce,0x8e,0xa7,0xdc,0xac,0x7d,0x71,0xa7,0x57,0x2c,0xd8,0xfd,0x57,0x54,0x74,0xa3,0xba,0x59,0x2a,0x96,0x3e,0xbc};
    static std::uint8_t addend59[32] = {0x05,0xf4,0xa7,0x07,0x5e,0x95,0x99,0x23,0xf2,0x4f,0xb0,0xf1,0x13,0x2e,0xd4,0x6d,0xdf,0x77,0x4d,0x4a,0x79,0x25,0x1e,0xc2,0xda,0xc5,0xb1,0xdf,0x9a,0xc3,0x82,0x01};
    static std::uint8_t sum59[32]    = {0x76,0x8c,0x7e,0xcb,0x0c,0x83,0x53,0x02,0x28,0x61,0x7f,0x7f,0xbb,0x0b,0x80,0xeb,0x51,0x1e,0xa4,0x77,0x52,0x22,0x76,0x17,0x4f,0x69,0x6c,0x38,0xc5,0x59,0xc0,0xbd};
    static int          carry59      = 0;
    mpz_from_bytes(augend, augend59, 8);
    mpz_from_bytes(addend, addend59, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum59, sum_data, 32) != 0 || carry59 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend60[32] = {0xff,0x7f,0xb2,0xaa,0x72,0x6a,0x28,0x0c,0x30,0x9a,0xfa,0x6e,0xae,0x19,0x1e,0x1b,0xed,0x52,0x34,0x34,0x1b,0xd0,0xcb,0xce,0xeb,0x66,0xa5,0xba,0xf6,0x81,0x6d,0xe5};
    static std::uint8_t addend60[32] = {0x2c,0x09,0x37,0x38,0xe1,0x4c,0x47,0xfd,0xc8,0x30,0x3a,0x7d,0x32,0x7d,0x7d,0xc2,0x7f,0x64,0xa2,0x6d,0x39,0x48,0x04,0xb3,0x7b,0x3b,0x42,0x60,0xb9,0xb9,0x74,0x13};
    static std::uint8_t sum60[32]    = {0x2b,0x88,0xe9,0xe3,0x53,0xb6,0x70,0x09,0xf8,0xcb,0x34,0xeb,0xe0,0x96,0x9b,0xde,0x6c,0xb6,0xd6,0xa1,0x55,0x18,0xd0,0x82,0x66,0xa1,0xe8,0x1b,0xb0,0x3a,0xe1,0xf8};
    static int          carry60      = 1;
    mpz_from_bytes(augend, augend60, 8);
    mpz_from_bytes(addend, addend60, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum60, sum_data, 32) != 0 || carry60 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend61[32] = {0xa9,0xa9,0xa3,0xe5,0xb3,0x39,0x97,0x3d,0x94,0x30,0x02,0x82,0x70,0xe3,0x44,0x16,0xda,0xfa,0x70,0xac,0x90,0xa4,0xfa,0xc4,0x8f,0x4a,0x52,0x3e,0x8c,0xd7,0x9a,0x93};
    static std::uint8_t addend61[32] = {0x34,0x49,0x4c,0x73,0xdb,0x30,0x1f,0xeb,0xec,0xbb,0x06,0x5e,0x9c,0xf8,0xfb,0x87,0x62,0x17,0x1d,0xe3,0x7d,0xa4,0x97,0xb4,0x87,0x66,0x68,0x62,0xb9,0x82,0x62,0x41};
    static std::uint8_t sum61[32]    = {0xdd,0xf2,0xf0,0x59,0x8e,0x69,0xb7,0x29,0x80,0xeb,0x08,0xe1,0x0d,0xdc,0x3f,0x9e,0x3d,0x11,0x8e,0x90,0x0e,0x49,0x92,0x79,0x16,0xb0,0xba,0xa1,0x46,0x59,0xfc,0xd4};
    static int          carry61      = 0;
    mpz_from_bytes(augend, augend61, 8);
    mpz_from_bytes(addend, addend61, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum61, sum_data, 32) != 0 || carry61 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend62[32] = {0x83,0x3b,0x2a,0xba,0xa4,0x3f,0x00,0x39,0xe3,0x85,0xfc,0x4d,0x92,0x5b,0x04,0xcc,0x5c,0x14,0xac,0x4c,0x98,0xd9,0x98,0xb7,0x99,0x9e,0x1f,0x24,0x02,0xd7,0xb9,0xd9};
    static std::uint8_t addend62[32] = {0xf8,0x6f,0xa1,0x3e,0xda,0x3d,0x05,0xca,0x6d,0x88,0xd7,0x6b,0x61,0x33,0x01,0xa5,0x3b,0x3f,0x5c,0xd3,0xf9,0x71,0x50,0xb7,0x99,0x2f,0xc7,0x14,0xc9,0x0e,0x92,0xe6};
    static std::uint8_t sum62[32]    = {0x7b,0xaa,0xcb,0xf9,0x7e,0x7c,0x06,0x04,0x51,0x0e,0xd3,0xb8,0xf3,0x8e,0x06,0x71,0x97,0x54,0x09,0x20,0x92,0x4a,0xe9,0x6f,0x32,0xcd,0xe6,0x38,0xcb,0xe6,0x4c,0xbf};
    static int          carry62      = 1;
    mpz_from_bytes(augend, augend62, 8);
    mpz_from_bytes(addend, addend62, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum62, sum_data, 32) != 0 || carry62 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend63[32] = {0xe8,0x45,0x91,0x7e,0x5d,0xbc,0x5a,0x07,0xfd,0x45,0x82,0xa0,0x99,0x9d,0xb1,0xce,0xce,0xb7,0x07,0x0d,0xf8,0x46,0x06,0x0c,0x62,0xd5,0xf1,0x8a,0x59,0x24,0x9c,0xb2};
    static std::uint8_t addend63[32] = {0x50,0xa1,0x19,0x10,0x0e,0xf7,0x8d,0x84,0x23,0xe4,0x71,0x46,0x2f,0x27,0xac,0x9d,0x57,0xe0,0x6b,0x90,0x54,0x45,0xb6,0x03,0xc7,0x90,0x69,0xfd,0x67,0x36,0xae,0xce};
    static std::uint8_t sum63[32]    = {0x38,0xe6,0xaa,0x8e,0x6c,0xb3,0xe7,0x8c,0x21,0x29,0xf3,0xe6,0xc8,0xc5,0x5e,0x6c,0x26,0x97,0x72,0x9e,0x4c,0x8b,0xbc,0x10,0x2a,0x66,0x5b,0x87,0xc0,0x5b,0x4b,0x80};
    static int          carry63      = 1;
    mpz_from_bytes(augend, augend63, 8);
    mpz_from_bytes(addend, addend63, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum63, sum_data, 32) != 0 || carry63 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend64[32] = {0xe6,0xdb,0xf9,0x93,0x29,0x5e,0xd4,0xbb,0x94,0x9b,0xd3,0x59,0x09,0xb7,0xd5,0x9a,0xd4,0xd7,0xe0,0xf0,0x50,0x68,0x4e,0xa6,0xa3,0xfa,0xd1,0xe3,0x2a,0xc4,0x08,0x4f};
    static std::uint8_t addend64[32] = {0x54,0x4d,0xa5,0x59,0x24,0x1f,0x61,0x66,0x7c,0x09,0xd4,0x68,0x1a,0x7c,0x93,0xf9,0x45,0x3e,0xc0,0x2c,0xb6,0xf1,0x08,0x0d,0xec,0xcf,0xcb,0x8c,0x7f,0xc1,0x4e,0xd1};
    static std::uint8_t sum64[32]    = {0x3b,0x29,0x9e,0xec,0x4d,0x7e,0x36,0x22,0x10,0xa5,0xa7,0xc1,0x24,0x34,0x69,0x94,0x1a,0x16,0xa1,0x1d,0x07,0x59,0x56,0xb4,0x90,0xca,0x9d,0x6f,0xaa,0x85,0x57,0x20};
    static int          carry64      = 1;
    mpz_from_bytes(augend, augend64, 8);
    mpz_from_bytes(addend, addend64, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum64, sum_data, 32) != 0 || carry64 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend65[32] = {0xcc,0x02,0x8f,0x27,0xc9,0x3c,0x1a,0x18,0x86,0x81,0x60,0xce,0xbf,0x98,0x03,0x82,0x25,0x9a,0xa2,0x8b,0xdd,0x99,0x83,0xc5,0x64,0x7d,0xfb,0xfe,0x3b,0x5e,0x7c,0x9a};
    static std::uint8_t addend65[32] = {0x54,0x46,0xc4,0x4e,0x23,0xe2,0x13,0x07,0x57,0x90,0xb1,0x7b,0x39,0xbf,0xda,0xfb,0xa4,0xa9,0xe7,0x84,0x06,0x86,0x4d,0x8b,0x0b,0x36,0xd6,0x8a,0xaf,0x20,0xa2,0x9c};
    static std::uint8_t sum65[32]    = {0x20,0x49,0x53,0x75,0xed,0x1e,0x2d,0x1f,0xde,0x12,0x12,0x49,0xf9,0x57,0xde,0x7d,0xca,0x44,0x8a,0x0f,0xe4,0x1f,0xd1,0x50,0x6f,0xb4,0xd2,0x88,0xea,0x7f,0x1f,0x36};
    static int          carry65      = 1;
    mpz_from_bytes(augend, augend65, 8);
    mpz_from_bytes(addend, addend65, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum65, sum_data, 32) != 0 || carry65 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend66[32] = {0x3f,0xfc,0xe4,0x96,0xed,0x2c,0x3a,0x04,0x10,0xc6,0x0c,0x9d,0x80,0x2b,0xfe,0xf6,0x34,0xd3,0x21,0x0d,0x66,0x43,0x05,0x9d,0x61,0x17,0x6f,0xd5,0xfc,0x30,0x76,0xe5};
    static std::uint8_t addend66[32] = {0x13,0x65,0xe2,0x17,0x08,0x34,0xd9,0x81,0x38,0xe6,0x42,0xb8,0x16,0xe9,0x00,0x91,0xec,0x35,0x96,0x5a,0xa8,0xa7,0x68,0x97,0x09,0x5f,0x9d,0xc8,0x76,0xab,0xac,0xcc};
    static std::uint8_t sum66[32]    = {0x53,0x62,0xc6,0xad,0xf5,0x61,0x13,0x85,0x49,0xac,0x4f,0x55,0x97,0x14,0xff,0x88,0x21,0x08,0xb7,0x68,0x0e,0xea,0x6e,0x34,0x6a,0x77,0x0d,0x9e,0x72,0xdc,0x23,0xb1};
    static int          carry66      = 0;
    mpz_from_bytes(augend, augend66, 8);
    mpz_from_bytes(addend, addend66, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum66, sum_data, 32) != 0 || carry66 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend67[32] = {0x0c,0x20,0x12,0x74,0xe4,0xc0,0x8b,0x66,0xe4,0x4f,0x9d,0xda,0xca,0x5c,0xd5,0xc2,0x54,0x04,0x9b,0xca,0x1d,0xea,0xe0,0x51,0x5c,0x4b,0xcd,0xdf,0xbe,0x5f,0xc5,0x26};
    static std::uint8_t addend67[32] = {0x9c,0x3f,0x43,0xf7,0x21,0xcd,0x2b,0x0f,0x7d,0x0d,0xc3,0x1c,0x62,0xcf,0x27,0xc0,0x1e,0xb9,0x12,0x1f,0x7b,0x0a,0xe7,0xdd,0x7f,0x7c,0x8d,0x9e,0x05,0x4b,0x28,0xda};
    static std::uint8_t sum67[32]    = {0xa8,0x5f,0x56,0x6c,0x06,0x8d,0xb6,0x76,0x61,0x5d,0x60,0xf7,0x2d,0x2b,0xfd,0x82,0x72,0xbd,0xad,0xe9,0x98,0xf5,0xc8,0x2e,0xdb,0xc8,0x5b,0x7d,0xc3,0xaa,0xee,0x00};
    static int          carry67      = 0;
    mpz_from_bytes(augend, augend67, 8);
    mpz_from_bytes(addend, addend67, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum67, sum_data, 32) != 0 || carry67 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend68[32] = {0x9c,0x0e,0x60,0xd8,0x7f,0xb2,0xac,0x76,0x0e,0x80,0xbf,0xd9,0x19,0xe1,0x17,0x3c,0xb4,0xb6,0xce,0x25,0x94,0x0a,0xc1,0xe5,0xcf,0x1b,0xb0,0x72,0xf3,0xbe,0xf7,0x40};
    static std::uint8_t addend68[32] = {0x25,0x77,0x8f,0xe4,0xdb,0x49,0xf0,0x05,0xcf,0x43,0xcd,0x72,0x4a,0x42,0x9b,0xae,0x25,0xa4,0xd2,0x72,0x50,0x63,0x95,0xbb,0xdf,0x06,0xa0,0xb6,0xf8,0xd5,0xe3,0x70};
    static std::uint8_t sum68[32]    = {0xc1,0x85,0xf0,0xbd,0x5a,0xfc,0x9c,0x7b,0xdd,0xc4,0x8d,0x4b,0x64,0x23,0xb2,0xea,0xda,0x5b,0xa0,0x97,0xe4,0x6e,0x57,0xa1,0xae,0x22,0x51,0x29,0xec,0x94,0xda,0xb0};
    static int          carry68      = 0;
    mpz_from_bytes(augend, augend68, 8);
    mpz_from_bytes(addend, addend68, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum68, sum_data, 32) != 0 || carry68 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend69[32] = {0xa3,0x4b,0xde,0xba,0xd2,0xd2,0xf1,0x77,0x2a,0x99,0x91,0xbf,0x43,0x25,0xe9,0x94,0x43,0x32,0x70,0xcf,0x2b,0xcf,0x88,0x59,0x87,0x89,0x99,0x91,0xc0,0x4f,0x12,0x8f};
    static std::uint8_t addend69[32] = {0xaa,0x82,0x07,0xf0,0x5d,0x36,0xe7,0x78,0xa6,0x3c,0x24,0xc7,0x68,0xac,0x48,0x44,0x57,0x20,0xf3,0x51,0xf1,0xe0,0x37,0xc4,0x0c,0x28,0xc4,0xda,0xaa,0x16,0xc3,0xf6};
    static std::uint8_t sum69[32]    = {0x4d,0xcd,0xe6,0xab,0x30,0x09,0xd8,0xef,0xd0,0xd5,0xb6,0x86,0xab,0xd2,0x31,0xd8,0x9a,0x53,0x64,0x21,0x1d,0xaf,0xc0,0x1d,0x93,0xb2,0x5e,0x6c,0x6a,0x65,0xd6,0x85};
    static int          carry69      = 1;
    mpz_from_bytes(augend, augend69, 8);
    mpz_from_bytes(addend, addend69, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum69, sum_data, 32) != 0 || carry69 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend70[32] = {0x53,0x96,0xdd,0x5d,0x9c,0x8a,0x75,0xcf,0x2a,0x20,0xaf,0xd7,0xa5,0x54,0xbe,0xc6,0xeb,0xd9,0xf5,0x76,0x78,0xfe,0xec,0x29,0xd5,0x2f,0x8d,0x1f,0x5d,0x7c,0x84,0xde};
    static std::uint8_t addend70[32] = {0x0f,0x2a,0x5d,0xa1,0x7c,0xaf,0xf6,0x67,0x3d,0x6b,0x9e,0xff,0x30,0x77,0x17,0xf1,0xc3,0xcb,0x63,0xaa,0x02,0x8d,0x6c,0x24,0xbd,0x2f,0x3a,0x47,0xdf,0xab,0x41,0x56};
    static std::uint8_t sum70[32]    = {0x62,0xc1,0x3a,0xff,0x19,0x3a,0x6c,0x36,0x67,0x8c,0x4e,0xd6,0xd5,0xcb,0xd6,0xb8,0xaf,0xa5,0x59,0x20,0x7b,0x8c,0x58,0x4e,0x92,0x5e,0xc7,0x67,0x3d,0x27,0xc6,0x34};
    static int          carry70      = 0;
    mpz_from_bytes(augend, augend70, 8);
    mpz_from_bytes(addend, addend70, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum70, sum_data, 32) != 0 || carry70 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend71[32] = {0xd9,0xbc,0x7a,0xa9,0x89,0x2a,0xbb,0x56,0xf1,0x28,0x92,0x4e,0x0b,0xdc,0x89,0x9e,0x63,0xe3,0x6b,0x18,0xcc,0xa8,0x48,0x47,0x86,0xc4,0x59,0x13,0x26,0x8d,0x10,0xeb};
    static std::uint8_t addend71[32] = {0x12,0x55,0x95,0x2f,0x0e,0x25,0x28,0x9d,0x9a,0x9d,0x14,0x1f,0xc0,0xe5,0xb1,0x81,0x44,0xb7,0xd1,0x54,0x6d,0x7d,0xc4,0x48,0xb4,0x81,0x9f,0xd9,0x29,0xf4,0x99,0x04};
    static std::uint8_t sum71[32]    = {0xec,0x12,0x0f,0xd8,0x97,0x4f,0xe3,0xf4,0x8b,0xc5,0xa6,0x6d,0xcc,0xc2,0x3b,0x1f,0xa8,0x9b,0x3c,0x6d,0x3a,0x26,0x0c,0x90,0x3b,0x45,0xf8,0xec,0x50,0x81,0xa9,0xef};
    static int          carry71      = 0;
    mpz_from_bytes(augend, augend71, 8);
    mpz_from_bytes(addend, addend71, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum71, sum_data, 32) != 0 || carry71 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend72[32] = {0x22,0x13,0x97,0xb8,0xb2,0x63,0x31,0x87,0x42,0x59,0xec,0x5e,0x61,0x67,0x08,0x20,0x66,0x62,0xde,0x3d,0xe3,0xe9,0xa9,0x0f,0x89,0x04,0x2b,0x9d,0x23,0xc8,0xde,0x6a};
    static std::uint8_t addend72[32] = {0x59,0xb8,0x96,0x16,0x85,0x29,0x86,0xb8,0x06,0xb5,0x78,0x29,0x60,0x77,0x4f,0x65,0x4a,0xcf,0x84,0x6b,0xf3,0xbb,0x0c,0x18,0x27,0x23,0x41,0x79,0x88,0x30,0x60,0x55};
    static std::uint8_t sum72[32]    = {0x7b,0xcc,0x2d,0xcf,0x37,0x8c,0xb8,0x3f,0x49,0x0f,0x64,0x87,0xc1,0xde,0x57,0x85,0xb1,0x32,0x62,0xa9,0xd7,0xa4,0xb5,0x27,0xb0,0x27,0x6d,0x16,0xab,0xf9,0x3e,0xbf};
    static int          carry72      = 0;
    mpz_from_bytes(augend, augend72, 8);
    mpz_from_bytes(addend, addend72, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum72, sum_data, 32) != 0 || carry72 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend73[32] = {0xdc,0x12,0x3d,0xe7,0x81,0xc5,0x63,0x13,0x7f,0x2d,0x07,0xe8,0xd6,0x57,0xa4,0x26,0xab,0xab,0x97,0xb7,0x9b,0xfe,0x1d,0xd7,0x98,0x5a,0xcd,0x3f,0x15,0xbd,0x74,0x8d};
    static std::uint8_t addend73[32] = {0x84,0x94,0x73,0x02,0x6b,0xa9,0x8a,0x3b,0xc2,0x07,0x2c,0x70,0x3b,0xc7,0x67,0x8b,0x34,0xc2,0x4f,0x0a,0x11,0x4f,0xc8,0x2a,0x29,0x28,0x7b,0x7c,0xd0,0x4a,0xdd,0x65};
    static std::uint8_t sum73[32]    = {0x60,0xa6,0xb0,0xe9,0xed,0x6e,0xed,0x4f,0x41,0x34,0x34,0x59,0x12,0x1f,0x0b,0xb1,0xe0,0x6d,0xe6,0xc1,0xad,0x4d,0xe6,0x01,0xc1,0x83,0x48,0xbb,0xe6,0x08,0x51,0xf2};
    static int          carry73      = 1;
    mpz_from_bytes(augend, augend73, 8);
    mpz_from_bytes(addend, addend73, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum73, sum_data, 32) != 0 || carry73 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend74[32] = {0x2e,0x3c,0x2c,0xdb,0xf6,0xfe,0xbc,0x83,0xaf,0x87,0x40,0xfa,0x2d,0x10,0x98,0x1b,0xc6,0x4a,0x99,0xdf,0x79,0x35,0x39,0xc8,0xe1,0xff,0x60,0x57,0x82,0x1d,0x0a,0x41};
    static std::uint8_t addend74[32] = {0xf7,0xff,0xb1,0x55,0xc2,0xf8,0x00,0xe1,0x1a,0x91,0x66,0x98,0xaa,0x48,0x4f,0xe2,0xa5,0xbc,0x01,0x6d,0x90,0x2c,0xc4,0x74,0xb0,0xb7,0x60,0x36,0x20,0xa2,0x0c,0x55};
    static std::uint8_t sum74[32]    = {0x26,0x3b,0xde,0x31,0xb9,0xf6,0xbd,0x64,0xca,0x18,0xa7,0x92,0xd7,0x58,0xe7,0xfe,0x6c,0x06,0x9b,0x4d,0x09,0x61,0xfe,0x3d,0x92,0xb6,0xc0,0x8d,0xa2,0xbf,0x16,0x96};
    static int          carry74      = 1;
    mpz_from_bytes(augend, augend74, 8);
    mpz_from_bytes(addend, addend74, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum74, sum_data, 32) != 0 || carry74 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend75[32] = {0x88,0xd2,0x3c,0x2d,0x25,0x4e,0x2b,0x84,0xdb,0x11,0xd6,0x48,0x3d,0xcd,0x6f,0xc2,0x17,0x1f,0xa3,0x95,0x7e,0xf5,0x98,0x49,0x8d,0x4d,0xf5,0xc1,0xe8,0x56,0x46,0x34};
    static std::uint8_t addend75[32] = {0x06,0x2a,0xac,0x23,0xa7,0xc0,0xfe,0x0f,0x03,0x9b,0x97,0x88,0xe1,0x7f,0x85,0x13,0xbc,0xce,0xc2,0x5a,0x30,0x15,0xd9,0x42,0x34,0x2f,0x80,0x41,0x79,0x76,0x67,0x2b};
    static std::uint8_t sum75[32]    = {0x8e,0xfc,0xe8,0x50,0xcd,0x0f,0x29,0x93,0xde,0xad,0x6d,0xd1,0x1f,0x4c,0xf4,0xd5,0xd3,0xee,0x65,0xef,0xaf,0x0b,0x71,0x8b,0xc1,0x7d,0x76,0x03,0x61,0xcc,0xad,0x5f};
    static int          carry75      = 0;
    mpz_from_bytes(augend, augend75, 8);
    mpz_from_bytes(addend, addend75, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum75, sum_data, 32) != 0 || carry75 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend76[32] = {0xe2,0x98,0x2a,0x3f,0x22,0x78,0x97,0xc6,0x01,0xce,0xed,0xf8,0x58,0xe4,0x23,0x53,0x37,0x8b,0xb2,0x80,0xd6,0xa3,0x25,0x49,0xf7,0x19,0x78,0x47,0x6a,0x57,0xa3,0xb0};
    static std::uint8_t addend76[32] = {0x07,0x8c,0xfa,0x38,0x29,0x74,0x68,0x9d,0x6f,0xf3,0x0c,0xc2,0xfd,0x08,0xa9,0x08,0xc7,0x8d,0x31,0xdf,0x90,0x54,0x20,0x7f,0xfd,0xe3,0xd1,0xb1,0x84,0x2e,0x45,0x1e};
    static std::uint8_t sum76[32]    = {0xea,0x25,0x24,0x77,0x4b,0xed,0x00,0x63,0x71,0xc1,0xfa,0xbb,0x55,0xec,0xcc,0x5b,0xff,0x18,0xe4,0x60,0x66,0xf7,0x45,0xc9,0xf4,0xfd,0x49,0xf8,0xee,0x85,0xe8,0xce};
    static int          carry76      = 0;
    mpz_from_bytes(augend, augend76, 8);
    mpz_from_bytes(addend, addend76, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum76, sum_data, 32) != 0 || carry76 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend77[32] = {0x6b,0x8d,0xd1,0x10,0xb8,0x23,0x4f,0xa6,0xc0,0xf6,0x69,0x2d,0xe0,0xa8,0x8e,0x94,0x57,0xf7,0xdc,0x50,0x94,0xda,0xe2,0xa2,0xb5,0x00,0x00,0x0e,0x86,0x8b,0x96,0x06};
    static std::uint8_t addend77[32] = {0x81,0xb9,0x56,0xf1,0x49,0x7a,0x56,0x7a,0x78,0x06,0xbd,0xd8,0xdb,0x51,0x9d,0x05,0x61,0xd0,0xf4,0xfe,0xd6,0x39,0x67,0x28,0x38,0x65,0x56,0xd3,0x4b,0xc2,0x09,0x70};
    static std::uint8_t sum77[32]    = {0xed,0x47,0x28,0x02,0x01,0x9d,0xa6,0x21,0x38,0xfd,0x27,0x06,0xbb,0xfa,0x2b,0x99,0xb9,0xc8,0xd1,0x4f,0x6b,0x14,0x49,0xca,0xed,0x65,0x56,0xe1,0xd2,0x4d,0x9f,0x76};
    static int          carry77      = 0;
    mpz_from_bytes(augend, augend77, 8);
    mpz_from_bytes(addend, addend77, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum77, sum_data, 32) != 0 || carry77 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend78[32] = {0xe2,0xd4,0x83,0x01,0x95,0x8a,0x1e,0xdd,0x0e,0x7c,0x71,0x5b,0x60,0x3f,0xc8,0x10,0x61,0x23,0x55,0x92,0x3b,0x35,0xdb,0x9b,0x5d,0xc1,0x68,0x59,0x5b,0xc2,0x7c,0x34};
    static std::uint8_t addend78[32] = {0x44,0x49,0xcb,0xec,0x60,0xc0,0xb4,0x91,0x9b,0xd4,0x9b,0x1c,0x78,0x30,0x53,0x8e,0x34,0x9f,0x4d,0xa4,0xd3,0xd2,0x8b,0xdb,0x87,0xfa,0xdd,0x2f,0x2a,0x78,0x2f,0x52};
    static std::uint8_t sum78[32]    = {0x27,0x1e,0x4e,0xed,0xf6,0x4a,0xd3,0x6e,0xaa,0x51,0x0c,0x77,0xd8,0x70,0x1b,0x9e,0x95,0xc2,0xa3,0x37,0x0f,0x08,0x67,0x76,0xe5,0xbc,0x45,0x88,0x86,0x3a,0xab,0x86};
    static int          carry78      = 1;
    mpz_from_bytes(augend, augend78, 8);
    mpz_from_bytes(addend, addend78, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum78, sum_data, 32) != 0 || carry78 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend79[32] = {0xf5,0xb8,0x0c,0x45,0x62,0x5c,0x74,0x87,0x8e,0xa6,0xc1,0xec,0xf8,0xc6,0x81,0x62,0xaf,0xf1,0xff,0xd4,0x8a,0xe5,0x4d,0x2a,0x1a,0x95,0x95,0x5c,0x95,0xc2,0x45,0x3c};
    static std::uint8_t addend79[32] = {0x77,0xd9,0x38,0xbf,0x1a,0x8f,0xe5,0x07,0x1e,0x75,0x1c,0xd7,0x72,0x37,0x47,0xfd,0xc2,0xc4,0xea,0x55,0x26,0xbf,0x94,0x86,0x65,0xf6,0x6d,0x97,0xaf,0xc2,0xcd,0x85};
    static std::uint8_t sum79[32]    = {0x6d,0x91,0x45,0x04,0x7c,0xec,0x59,0x8e,0xad,0x1b,0xde,0xc4,0x6a,0xfd,0xc9,0x60,0x72,0xb6,0xea,0x29,0xb1,0xa4,0xe1,0xb0,0x80,0x8c,0x02,0xf4,0x45,0x85,0x12,0xc1};
    static int          carry79      = 1;
    mpz_from_bytes(augend, augend79, 8);
    mpz_from_bytes(addend, addend79, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum79, sum_data, 32) != 0 || carry79 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend80[32] = {0x2d,0xa8,0x85,0x71,0x54,0x7e,0x8b,0x4b,0xd3,0x44,0x44,0xc1,0x02,0xeb,0xb6,0xf1,0x22,0x6c,0x84,0xf6,0xb7,0xb0,0xe0,0x84,0x11,0x7d,0x5c,0xd1,0x24,0x71,0x40,0x56};
    static std::uint8_t addend80[32] = {0x4b,0xe9,0x75,0x61,0x86,0x01,0x27,0x1c,0x07,0xff,0xba,0xc3,0x76,0xdd,0xf2,0x41,0xcb,0x36,0x16,0x1d,0x78,0xf8,0xd9,0xd1,0x24,0x2e,0x73,0xf5,0x02,0x62,0xf8,0x7f};
    static std::uint8_t sum80[32]    = {0x79,0x91,0xfa,0xd2,0xda,0x7f,0xb2,0x67,0xdb,0x43,0xff,0x84,0x79,0xc9,0xa9,0x32,0xed,0xa2,0x9b,0x14,0x30,0xa9,0xba,0x55,0x35,0xab,0xd0,0xc6,0x26,0xd4,0x38,0xd5};
    static int          carry80      = 0;
    mpz_from_bytes(augend, augend80, 8);
    mpz_from_bytes(addend, addend80, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum80, sum_data, 32) != 0 || carry80 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend81[32] = {0x87,0xeb,0x43,0x50,0x0c,0xf9,0xd2,0x03,0x5c,0x28,0xdd,0xb0,0x9c,0x87,0x37,0xb8,0x18,0x6a,0x50,0xd6,0x22,0x16,0x0c,0x31,0x07,0x89,0x13,0xcf,0xed,0xda,0xe1,0x50};
    static std::uint8_t addend81[32] = {0x6b,0x4b,0x86,0x46,0x28,0xd2,0xb9,0xf4,0x18,0x61,0x9e,0x4e,0x79,0x7a,0x4e,0xff,0x00,0xdf,0x4d,0xfa,0x4c,0xa3,0x44,0x05,0xce,0x55,0x44,0x30,0xd4,0x7e,0x41,0xb1};
    static std::uint8_t sum81[32]    = {0xf3,0x36,0xc9,0x96,0x35,0xcc,0x8b,0xf7,0x74,0x8a,0x7b,0xff,0x16,0x01,0x86,0xb7,0x19,0x49,0x9e,0xd0,0x6e,0xb9,0x50,0x36,0xd5,0xde,0x58,0x00,0xc2,0x59,0x23,0x01};
    static int          carry81      = 0;
    mpz_from_bytes(augend, augend81, 8);
    mpz_from_bytes(addend, addend81, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum81, sum_data, 32) != 0 || carry81 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend82[32] = {0x51,0x03,0x86,0x3d,0xd2,0x03,0x7d,0xcd,0x04,0x14,0xb3,0xf0,0x7c,0x67,0x02,0xb6,0x70,0xc8,0xa3,0x68,0x7f,0xc3,0xc2,0xb1,0x03,0x34,0x50,0xe4,0x90,0x59,0x29,0x5a};
    static std::uint8_t addend82[32] = {0xb6,0xbe,0xbb,0xb9,0x0a,0xb3,0xd6,0x1c,0xe6,0x71,0x60,0xf7,0x8b,0xa8,0x13,0xac,0xd6,0x38,0xd5,0x62,0x5d,0x9d,0x6c,0x5d,0x33,0x7a,0x36,0x69,0x0c,0x54,0xf1,0x71};
    static std::uint8_t sum82[32]    = {0x07,0xc2,0x41,0xf6,0xdc,0xb7,0x53,0xe9,0xea,0x86,0x14,0xe8,0x08,0x0f,0x16,0x63,0x47,0x01,0x78,0xca,0xdd,0x61,0x2f,0x0e,0x36,0xae,0x87,0x4d,0x9c,0xae,0x1a,0xcb};
    static int          carry82      = 1;
    mpz_from_bytes(augend, augend82, 8);
    mpz_from_bytes(addend, addend82, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum82, sum_data, 32) != 0 || carry82 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend83[32] = {0x99,0xfc,0x9c,0xc7,0x05,0x3f,0xa1,0x81,0x11,0x23,0x56,0x8d,0x40,0x34,0xf1,0x2b,0xdc,0xb0,0xe8,0x48,0x0e,0x27,0xd9,0x50,0xf7,0x26,0x92,0x1e,0x3c,0xec,0x10,0xd2};
    static std::uint8_t addend83[32] = {0x64,0x65,0xdf,0xd9,0x87,0x4c,0xb8,0x07,0x30,0x21,0xd2,0x4b,0x4a,0x33,0xa3,0x22,0x26,0x6f,0xc9,0xde,0x25,0xfb,0xe6,0xf9,0x41,0xf0,0xe9,0x20,0x9c,0x41,0x25,0xb1};
    static std::uint8_t sum83[32]    = {0xfe,0x62,0x7c,0xa0,0x8c,0x8c,0x59,0x88,0x41,0x45,0x28,0xd8,0x8a,0x68,0x94,0x4e,0x03,0x20,0xb2,0x26,0x34,0x23,0xc0,0x4a,0x39,0x17,0x7b,0x3e,0xd9,0x2d,0x36,0x83};
    static int          carry83      = 0;
    mpz_from_bytes(augend, augend83, 8);
    mpz_from_bytes(addend, addend83, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum83, sum_data, 32) != 0 || carry83 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend84[32] = {0x55,0x8e,0xa8,0xbc,0x93,0x0f,0xcb,0xbe,0x56,0x96,0x14,0x12,0x7a,0xe5,0xfc,0x1e,0x80,0x6b,0x3f,0x2e,0x72,0x83,0x45,0x3c,0xd2,0x8b,0xf9,0x80,0x49,0x8b,0xea,0xb0};
    static std::uint8_t addend84[32] = {0xbe,0xf9,0x0a,0xf5,0x41,0xf2,0xda,0x60,0x73,0x3c,0x9f,0xc2,0x11,0x33,0x2a,0xc6,0xfd,0x2c,0xce,0xc8,0xd9,0xe2,0x98,0x5f,0x82,0x41,0x54,0x58,0x1b,0xc4,0xd7,0xc4};
    static std::uint8_t sum84[32]    = {0x14,0x87,0xb3,0xb1,0xd5,0x02,0xa6,0x1e,0xc9,0xd2,0xb3,0xd4,0x8c,0x19,0x26,0xe5,0x7d,0x98,0x0d,0xf7,0x4c,0x65,0xdd,0x9c,0x54,0xcd,0x4d,0xd8,0x65,0x50,0xc2,0x74};
    static int          carry84      = 1;
    mpz_from_bytes(augend, augend84, 8);
    mpz_from_bytes(addend, addend84, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum84, sum_data, 32) != 0 || carry84 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend85[32] = {0x7e,0x19,0x45,0x13,0x75,0x70,0xcd,0x55,0xda,0x6a,0x34,0xd9,0x8d,0x27,0xe6,0x02,0xe7,0xb8,0xc6,0x2d,0x46,0xb9,0x57,0xea,0xb3,0x39,0x6a,0x11,0xe0,0x12,0x9e,0xdf};
    static std::uint8_t addend85[32] = {0x00,0x44,0x72,0x08,0x43,0x68,0x42,0x97,0xc0,0x39,0x8b,0x41,0x6b,0xa2,0x6d,0x59,0x43,0xd6,0xe0,0x88,0x9f,0xed,0x27,0x8e,0xfe,0x17,0x4a,0x9b,0x9d,0xb2,0x3f,0x75};
    static std::uint8_t sum85[32]    = {0x7e,0x5d,0xb7,0x1b,0xb8,0xd9,0x0f,0xed,0x9a,0xa3,0xc0,0x1a,0xf8,0xca,0x53,0x5c,0x2b,0x8f,0xa6,0xb5,0xe6,0xa6,0x7f,0x79,0xb1,0x50,0xb4,0xad,0x7d,0xc4,0xde,0x54};
    static int          carry85      = 0;
    mpz_from_bytes(augend, augend85, 8);
    mpz_from_bytes(addend, addend85, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum85, sum_data, 32) != 0 || carry85 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend86[32] = {0x0a,0x88,0x8a,0xeb,0x23,0x0e,0x8d,0x4e,0xb0,0xa9,0x15,0x85,0x5a,0xe0,0x4a,0xe6,0xd2,0xa8,0x96,0xc6,0x4e,0x54,0x35,0xf5,0xae,0x95,0x9a,0x89,0x9d,0xd6,0x85,0xe9};
    static std::uint8_t addend86[32] = {0xd0,0x4d,0x38,0x34,0xb6,0x34,0x70,0x17,0xcf,0x13,0x6b,0xcc,0x01,0xaa,0x86,0x16,0x13,0x40,0x8c,0x1c,0xaa,0x7b,0x35,0xf3,0xd8,0xc3,0x13,0x4e,0x8b,0x5a,0x7d,0x25};
    static std::uint8_t sum86[32]    = {0xda,0xd5,0xc3,0x1f,0xd9,0x42,0xfd,0x66,0x7f,0xbc,0x81,0x51,0x5c,0x8a,0xd0,0xfc,0xe5,0xe9,0x22,0xe2,0xf8,0xcf,0x6b,0xe9,0x87,0x58,0xad,0xd8,0x29,0x31,0x03,0x0e};
    static int          carry86      = 0;
    mpz_from_bytes(augend, augend86, 8);
    mpz_from_bytes(addend, addend86, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum86, sum_data, 32) != 0 || carry86 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend87[32] = {0xf6,0xa5,0x96,0x56,0x79,0xc5,0x9e,0x0a,0x19,0x14,0x4c,0xb0,0x34,0xd2,0xd9,0x13,0xf3,0xfb,0x1d,0x10,0x36,0xf1,0x65,0x7b,0x74,0x52,0x8c,0xb1,0x9e,0xcc,0x57,0x44};
    static std::uint8_t addend87[32] = {0x42,0x89,0xc9,0xe2,0x3e,0xbb,0xec,0xb3,0x29,0xd5,0x1f,0x21,0xf2,0x2c,0x90,0xd7,0x4f,0xa9,0x10,0x87,0x20,0xf9,0x09,0x87,0x1b,0x22,0x12,0x03,0x9f,0x84,0xf2,0xcf};
    static std::uint8_t sum87[32]    = {0x39,0x2f,0x60,0x38,0xb8,0x81,0x8a,0xbd,0x42,0xe9,0x6b,0xd2,0x26,0xff,0x69,0xeb,0x43,0xa4,0x2d,0x97,0x57,0xea,0x6f,0x02,0x8f,0x74,0x9e,0xb5,0x3e,0x51,0x4a,0x13};
    static int          carry87      = 1;
    mpz_from_bytes(augend, augend87, 8);
    mpz_from_bytes(addend, addend87, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum87, sum_data, 32) != 0 || carry87 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend88[32] = {0x32,0x37,0x43,0xb2,0x3c,0x25,0xb5,0xdf,0x9f,0x7e,0xe5,0x90,0x2d,0x41,0x04,0x16,0x95,0x30,0xb3,0xaa,0xe8,0x5c,0x27,0xc7,0x9e,0x15,0x38,0x5d,0x2d,0x1a,0x1b,0xf0};
    static std::uint8_t addend88[32] = {0x61,0x68,0xaa,0x26,0xa0,0x93,0xb0,0x1d,0xf9,0xdb,0xdc,0x46,0x3e,0x30,0x9d,0x54,0xb4,0xb0,0x0e,0xd2,0x10,0x2a,0x5e,0x98,0xab,0x84,0x4d,0xb2,0x53,0x86,0xf1,0x26};
    static std::uint8_t sum88[32]    = {0x93,0x9f,0xed,0xd8,0xdc,0xb9,0x65,0xfd,0x99,0x5a,0xc1,0xd6,0x6b,0x71,0xa1,0x6b,0x49,0xe0,0xc2,0x7c,0xf8,0x86,0x86,0x60,0x49,0x99,0x86,0x0f,0x80,0xa1,0x0d,0x16};
    static int          carry88      = 0;
    mpz_from_bytes(augend, augend88, 8);
    mpz_from_bytes(addend, addend88, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum88, sum_data, 32) != 0 || carry88 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend89[32] = {0xe3,0x35,0x97,0xbf,0x24,0x09,0x51,0x1f,0x0a,0x54,0x62,0x5a,0x85,0x14,0xa7,0xe2,0x16,0x94,0xfa,0xf6,0x24,0xb4,0x64,0x68,0x1d,0x0f,0xdb,0xa8,0x60,0x9b,0xde,0x28};
    static std::uint8_t addend89[32] = {0x5b,0x9d,0x4c,0x55,0x91,0x89,0x7a,0x9d,0x50,0x88,0x95,0x1d,0xc6,0x95,0xfd,0x81,0x8d,0x27,0x3a,0xf8,0x39,0x79,0x2f,0xdf,0x98,0xaa,0xf9,0x72,0x8b,0xbb,0xd7,0xa5};
    static std::uint8_t sum89[32]    = {0x3e,0xd2,0xe4,0x14,0xb5,0x92,0xcb,0xbc,0x5a,0xdc,0xf7,0x78,0x4b,0xaa,0xa5,0x63,0xa3,0xbc,0x35,0xee,0x5e,0x2d,0x94,0x47,0xb5,0xba,0xd5,0x1a,0xec,0x57,0xb5,0xcd};
    static int          carry89      = 1;
    mpz_from_bytes(augend, augend89, 8);
    mpz_from_bytes(addend, addend89, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum89, sum_data, 32) != 0 || carry89 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend90[32] = {0xfa,0x23,0xef,0x37,0x98,0xcb,0xec,0x10,0xae,0xc7,0x6b,0xab,0x58,0xdc,0x90,0x9c,0x2b,0x91,0x9a,0x17,0x9e,0x75,0xe6,0x73,0xae,0x2a,0xba,0x9b,0xa1,0x5b,0x7c,0x9a};
    static std::uint8_t addend90[32] = {0x05,0x32,0x7e,0x24,0xf3,0x0c,0x3b,0xd9,0x28,0xe0,0x97,0x81,0xd0,0x98,0x51,0x95,0xdc,0x84,0xc6,0x70,0x96,0x0b,0x42,0x07,0xa8,0x9c,0xca,0x47,0x03,0x4e,0xe9,0x6d};
    static std::uint8_t sum90[32]    = {0xff,0x56,0x6d,0x5c,0x8b,0xd8,0x27,0xe9,0xd7,0xa8,0x03,0x2d,0x29,0x74,0xe2,0x32,0x08,0x16,0x60,0x88,0x34,0x81,0x28,0x7b,0x56,0xc7,0x84,0xe2,0xa4,0xaa,0x66,0x07};
    static int          carry90      = 0;
    mpz_from_bytes(augend, augend90, 8);
    mpz_from_bytes(addend, addend90, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum90, sum_data, 32) != 0 || carry90 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend91[32] = {0xee,0x8b,0x90,0xef,0xc2,0xd9,0xdb,0xb0,0x2a,0x49,0xb8,0xf7,0xd4,0x88,0xe7,0xda,0xa1,0xdd,0x0e,0xa3,0xb9,0x75,0x00,0xf0,0xa7,0x5b,0xa2,0x1a,0x08,0xc6,0x8b,0x1c};
    static std::uint8_t addend91[32] = {0x03,0xa4,0x90,0x1b,0x7c,0x1a,0x77,0x75,0x8b,0xf6,0x48,0xfe,0xaf,0xa3,0xfd,0x50,0x15,0xb5,0xd5,0x60,0x69,0xff,0x24,0x5c,0x7b,0x48,0x8c,0x01,0x59,0xe3,0x1c,0x82};
    static std::uint8_t sum91[32]    = {0xf2,0x30,0x21,0x0b,0x3e,0xf4,0x53,0x25,0xb6,0x40,0x01,0xf6,0x84,0x2c,0xe5,0x2a,0xb7,0x92,0xe4,0x04,0x23,0x74,0x25,0x4d,0x22,0xa4,0x2e,0x1b,0x62,0xa9,0xa7,0x9e};
    static int          carry91      = 0;
    mpz_from_bytes(augend, augend91, 8);
    mpz_from_bytes(addend, addend91, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum91, sum_data, 32) != 0 || carry91 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend92[32] = {0xe9,0x77,0xdd,0xe1,0x11,0x6e,0x55,0x42,0xa7,0x71,0xcc,0xda,0x46,0xab,0x54,0x0f,0xa3,0xc1,0xa8,0x35,0x64,0x0d,0x8c,0x9f,0xd9,0xec,0xab,0xfa,0x8a,0x6a,0x1e,0xc1};
    static std::uint8_t addend92[32] = {0x0d,0x83,0x3d,0x4a,0xdd,0xcb,0xf3,0x3e,0x8f,0x61,0xaa,0x6a,0xe4,0x73,0xed,0x51,0x1b,0x64,0x13,0xb7,0x57,0x8e,0x03,0x69,0x55,0xbf,0x30,0xd8,0xf7,0x20,0x30,0x8a};
    static std::uint8_t sum92[32]    = {0xf6,0xfb,0x1b,0x2b,0xef,0x3a,0x48,0x81,0x36,0xd3,0x77,0x45,0x2b,0x1f,0x41,0x60,0xbf,0x25,0xbb,0xec,0xbb,0x9b,0x90,0x09,0x2f,0xab,0xdc,0xd3,0x81,0x8a,0x4f,0x4b};
    static int          carry92      = 0;
    mpz_from_bytes(augend, augend92, 8);
    mpz_from_bytes(addend, addend92, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum92, sum_data, 32) != 0 || carry92 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend93[32] = {0xd4,0xfd,0xf4,0xcf,0x28,0x0c,0x73,0x8e,0x5a,0x9a,0x1a,0x37,0x14,0x08,0x02,0x7c,0x3d,0x98,0x55,0x37,0x7c,0xbf,0x51,0x14,0xec,0x3b,0xd3,0x23,0x4b,0x30,0xa8,0x2d};
    static std::uint8_t addend93[32] = {0x0d,0x49,0xf4,0xb9,0xfd,0x75,0x50,0x8b,0x15,0xf8,0xe5,0x58,0x12,0x15,0xf4,0xf4,0x3b,0xc7,0x1d,0x99,0xb9,0x97,0xb4,0xa5,0xdf,0xfb,0xcb,0xe6,0x22,0x56,0x42,0x18};
    static std::uint8_t sum93[32]    = {0xe2,0x47,0xe9,0x89,0x25,0x81,0xc4,0x19,0x70,0x92,0xff,0x8f,0x26,0x1d,0xf7,0x70,0x79,0x5f,0x72,0xd1,0x36,0x57,0x05,0xba,0xcc,0x37,0x9f,0x09,0x6d,0x86,0xea,0x45};
    static int          carry93      = 0;
    mpz_from_bytes(augend, augend93, 8);
    mpz_from_bytes(addend, addend93, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum93, sum_data, 32) != 0 || carry93 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend94[32] = {0xb1,0x52,0x7c,0x2c,0xe8,0x5d,0xba,0xf7,0x50,0x6a,0x59,0x41,0x75,0xa0,0x4e,0x92,0x55,0x7f,0x49,0xeb,0x77,0x7e,0x6c,0x52,0xee,0x5e,0x3f,0x35,0xac,0xe9,0x0c,0x7f};
    static std::uint8_t addend94[32] = {0xc5,0x5c,0x43,0xd0,0x29,0xb3,0x7e,0x7c,0xd3,0xfc,0x7d,0x83,0xde,0x34,0x86,0xaa,0x0f,0xbe,0x4f,0x65,0x01,0x60,0x62,0xc4,0x0a,0x9b,0xcd,0x79,0x19,0xcd,0xdd,0xb9};
    static std::uint8_t sum94[32]    = {0x76,0xae,0xbf,0xfd,0x12,0x11,0x39,0x74,0x24,0x66,0xd6,0xc5,0x53,0xd4,0xd5,0x3c,0x65,0x3d,0x99,0x50,0x78,0xde,0xcf,0x16,0xf8,0xfa,0x0c,0xae,0xc6,0xb6,0xea,0x38};
    static int          carry94      = 1;
    mpz_from_bytes(augend, augend94, 8);
    mpz_from_bytes(addend, addend94, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum94, sum_data, 32) != 0 || carry94 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend95[32] = {0xff,0x01,0x79,0x0f,0x55,0xe6,0xea,0x31,0x0d,0x28,0x01,0x02,0x12,0x97,0xe4,0x92,0x2b,0x0a,0xbe,0x5b,0xea,0x30,0xbe,0x9f,0x36,0x1d,0x9b,0x19,0x9c,0x0b,0x6d,0xb7};
    static std::uint8_t addend95[32] = {0x43,0x85,0x5d,0x44,0x01,0x6e,0x6a,0xa5,0xce,0xfe,0xd7,0x56,0x57,0x9d,0x30,0x3f,0xc3,0xe3,0x3c,0x91,0x31,0x1d,0x97,0x1d,0xb9,0x3e,0x40,0xe9,0x8d,0x3b,0xdd,0xd8};
    static std::uint8_t sum95[32]    = {0x42,0x86,0xd6,0x53,0x57,0x55,0x54,0xd6,0xdc,0x26,0xd8,0x58,0x6a,0x35,0x14,0xd1,0xee,0xed,0xfa,0xed,0x1b,0x4e,0x55,0xbc,0xef,0x5b,0xdc,0x03,0x29,0x47,0x4b,0x8f};
    static int          carry95      = 1;
    mpz_from_bytes(augend, augend95, 8);
    mpz_from_bytes(addend, addend95, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum95, sum_data, 32) != 0 || carry95 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend96[32] = {0xa8,0x82,0x20,0x69,0xae,0x71,0xbb,0x63,0xb2,0x87,0x91,0xfa,0x75,0x62,0x63,0xdf,0xcc,0xec,0x50,0x79,0x8a,0x18,0xac,0x3f,0x7d,0xff,0xee,0x82,0x14,0xf8,0x1f,0x3b};
    static std::uint8_t addend96[32] = {0x94,0x6d,0xcc,0xac,0x11,0x03,0x6b,0xf2,0x51,0x4f,0xa0,0x74,0xc7,0x99,0x16,0xad,0x1c,0xf6,0x4a,0x0b,0x48,0xf0,0x80,0xec,0x51,0x2d,0x26,0xd7,0xdc,0xd4,0x1e,0x97};
    static std::uint8_t sum96[32]    = {0x3c,0xef,0xed,0x15,0xbf,0x75,0x27,0x56,0x03,0xd7,0x32,0x6f,0x3c,0xfb,0x7a,0x8c,0xe9,0xe2,0x9a,0x84,0xd3,0x09,0x2d,0x2b,0xcf,0x2d,0x15,0x59,0xf1,0xcc,0x3d,0xd2};
    static int          carry96      = 1;
    mpz_from_bytes(augend, augend96, 8);
    mpz_from_bytes(addend, addend96, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum96, sum_data, 32) != 0 || carry96 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend97[32] = {0xbb,0x96,0x14,0xa1,0x9c,0x71,0xe7,0xe0,0x04,0xbc,0xb5,0xe8,0x57,0x65,0x61,0x81,0x17,0x48,0x35,0x03,0x9f,0x8d,0x91,0x44,0x36,0x18,0x11,0xd5,0x7a,0x92,0x28,0x66};
    static std::uint8_t addend97[32] = {0xcc,0xc1,0x13,0x47,0x68,0x32,0x74,0x59,0x92,0x6a,0x4d,0x64,0x7d,0x72,0xb5,0x82,0x3d,0xdb,0x0f,0x01,0x40,0x04,0x5a,0x7f,0xfb,0x01,0x5c,0x46,0x77,0xfb,0x50,0xdd};
    static std::uint8_t sum97[32]    = {0x88,0x57,0x27,0xe9,0x04,0xa4,0x5c,0x39,0x97,0x27,0x03,0x4c,0xd4,0xd8,0x17,0x03,0x55,0x23,0x44,0x04,0xdf,0x91,0xeb,0xc4,0x31,0x19,0x6e,0x1b,0xf2,0x8d,0x79,0x43};
    static int          carry97      = 1;
    mpz_from_bytes(augend, augend97, 8);
    mpz_from_bytes(addend, addend97, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum97, sum_data, 32) != 0 || carry97 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend98[32] = {0x3e,0x41,0xf0,0x73,0xa3,0xe8,0x88,0x6f,0x17,0x4f,0xb3,0xef,0x40,0xe4,0xf3,0xec,0xe8,0x9f,0xaa,0x9e,0xf8,0x2e,0x71,0xea,0x3d,0xcc,0xb6,0xee,0xe5,0x2a,0x2c,0x88};
    static std::uint8_t addend98[32] = {0x1e,0x1e,0x00,0xd6,0x0b,0x49,0x1b,0x64,0x4b,0x01,0x1a,0x3c,0x25,0x36,0x10,0x1a,0xda,0x28,0x0b,0x48,0x27,0x20,0x4a,0x50,0x0b,0xed,0x2f,0x93,0x36,0x62,0xee,0x15};
    static std::uint8_t sum98[32]    = {0x5c,0x5f,0xf1,0x49,0xaf,0x31,0xa3,0xd3,0x62,0x50,0xce,0x2b,0x66,0x1b,0x04,0x07,0xc2,0xc7,0xb5,0xe7,0x1f,0x4e,0xbc,0x3a,0x49,0xb9,0xe6,0x82,0x1b,0x8d,0x1a,0x9d};
    static int          carry98      = 0;
    mpz_from_bytes(augend, augend98, 8);
    mpz_from_bytes(addend, addend98, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum98, sum_data, 32) != 0 || carry98 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }

    static std::uint8_t augend99[32] = {0x21,0x60,0x3a,0x49,0x63,0x3c,0xb0,0x58,0x24,0x8b,0x8d,0xae,0x44,0xc6,0xa0,0x64,0xf7,0x46,0x77,0x2e,0x3a,0x18,0x7d,0x97,0xb4,0xb4,0xc3,0x63,0x4d,0x65,0xa8,0xe6};
    static std::uint8_t addend99[32] = {0xf0,0x0f,0x64,0x9c,0x99,0x21,0x70,0xea,0xec,0x0b,0xa1,0x0f,0x1c,0x00,0x22,0xa2,0x80,0x1b,0x0c,0x65,0x9d,0x92,0xdf,0x60,0x6d,0x75,0x1c,0x5a,0xd8,0xc9,0x3a,0x53};
    static std::uint8_t sum99[32]    = {0x11,0x6f,0x9e,0xe5,0xfc,0x5e,0x21,0x43,0x10,0x97,0x2e,0xbd,0x60,0xc6,0xc3,0x07,0x77,0x61,0x83,0x93,0xd7,0xab,0x5c,0xf8,0x22,0x29,0xdf,0xbe,0x26,0x2e,0xe3,0x39};
    static int          carry99      = 1;
    mpz_from_bytes(augend, augend99, 8);
    mpz_from_bytes(addend, addend99, 8);
    carry = mpz_add_carry(sum, augend, addend, 0, 8);
    mpz_to_bytes(sum_data, sum, 8);
    if (std::memcmp(sum99, sum_data, 32) != 0 || carry99 != carry)
    {
        throw std::runtime_error("err in common::mpz_add_carry");
    }
}
#endif